Jump to content

Cum fac un checkpoint


X.Cornel

Recommended Posts

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??? 

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.