Jump to content

Recommended Posts

Posted

Salut cum pot face un nou checkpoint sa i-mi arate doar coordonatele cum scri /save si ti da coordonatele in document-gta san-samp-savepozition cum pot face si un checkpoint si sa i-mi dea doar coordonatele ca la /save? ca vreau sa schimb locatia din gps sa nu mai duc la alt checkpoint vreau sa pun alt checkpoint dar nu stiu coordonatele acelea cu Z,Y sau cum or fii??? 

Posted

salut, poftim

CMD:brad(playerid,params[])
{
    if(PlayerInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid, COLOR_WHITE, "Nu esti autorizat");
    new Float:X, Float:Y, Float:Z, stringgg[456];
    //new string[128];
    GetPlayerPos(playerid,X,Y,Z);
    SetPlayerPos(playerid,X+5,Y,Z);
    format(stringgg, sizeof(stringgg), "checkpoint creat la coordonatele: x: %f | y: %f | z:%f", X, Y, Z);
    WriteLogg(stringgg);
    SendClientMessage(playerid, COLOR_WHITE, "Add checkpoint");
    return 1;
}
public WriteLogg(stringgg[])
{
        new entry[192];
        format(entry, sizeof(entry), "%s\n",stringgg);
        new File:hFile;
        hFile = fopen("checkpoint.txt", io_append);
        fwrite(hFile, entry);
        fclose(hFile);
        return 1;
}

 

FiveGame  Lands

Pawno Developer, Mapping , Scripter

Since 2016

Posted
Chiar acum, Geani a spus:

salut, poftim


CMD:checkpoint(playerid,params[])
{
    if(PlayerInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid, COLOR_WHITE, "Nu esti autorizat");
    new Float:X, Float:Y, Float:Z, stringgg[456];
    //new string[128];
    GetPlayerPos(playerid,X,Y,Z);
    SetPlayerPos(playerid,X+5,Y,Z);
    format(stringgg, sizeof(stringgg), "checkpoint creat la coordonatele: x: %f | y: %f | z:%f", X, Y, Z);
    WriteLogg(stringgg);
    SendClientMessage(playerid, COLOR_WHITE, "Add checkpoint");
    return 1;
}
public WriteLogg(stringgg[])
{
        new entry[192];
        format(entry, sizeof(entry), "%s\n",stringgg);
        new File:hFile;
        hFile = fopen("checkpoint.txt", io_append);
        fwrite(hFile, entry);
        fclose(hFile);
        return 1;
}

 

 

FiveGame  Lands

Pawno Developer, Mapping , Scripter

Since 2016

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.