[Pedido] gps
#7

pawn Код:
if(strcmp(cmd, "/gps", true) == 0)
{
    new tmp[128];
    tmp = strtok(cmdtext, idx);

    if(strlen(tmp) == 0) return SendClientMessage(playerid, 0xFFFFFFFF, "USO: /gps [id]");

    new Float:x, Float:y, Float:z;
    GetPlayerPos(strval(tmp), x, y, z);

    SetPlayerCheckpoint(playerid, x, y, z, 10.0);
    SendClientMessage(playerid, green, "Siga o checkpoint para achar o player.");
    return 1;
}
aqui, tenta ai, nгo sou muito bom com strtok
Reply


Messages In This Thread
gps - by vitere - 23.10.2012, 22:20
Re: gps - by leandro123456 - 23.10.2012, 22:26
Re: gps - by Ouro - 23.10.2012, 22:36
Re: gps - by vitere - 23.10.2012, 22:50
Re: gps - by Ouro - 23.10.2012, 22:56
Re: gps - by vitere - 23.10.2012, 23:08
Re: gps - by leandro123456 - 23.10.2012, 23:45

Forum Jump:


Users browsing this thread: 5 Guest(s)