[AJUDA] Teleporte
#6

pawn Код:
if(strcmp(cmd, "/ir", true) == 0)
    {
        tmp = strtok(cmdtext, idx);
        new Float:P[3], PlayerB;
        if(!strlen(tmp)) return SendClientMessage(playerid, vermelho, "Uso correto:{FFFFFF} /Ir [id]");
        PlayerB = strval(tmp);
        if(!IsPlayerConnected(PlayerB)) return SendClientMessage(playerid, Branco, "Este jogador nгo estб online");
        GetPlayerPos(PlayerB, P[0], P[1], P[2]);
        SetPlayerPos(playerid, P[0], P[1]+1.0, P[2]);
        if(GetPlayerState(playerid) == 2)
        {
            new carro = GetPlayerVehicleID(playerid);
            SetVehiclePos(carro, P[0], P[1]+1.0, P[2]);
            PutPlayerInVehicle(playerid, carro, 0);
        }
        return 1;
    }
Reply


Messages In This Thread
[AJUDA] Teleporte - by You_Tube - 21.08.2011, 00:44
Re: [AJUDA] Teleporte - by Bruno Pereira - 21.08.2011, 00:48
Re: [AJUDA] Teleporte - by You_Tube - 21.08.2011, 01:12
Re: [AJUDA] Teleporte - by Macintosh - 21.08.2011, 01:13
Re: [AJUDA] Teleporte - by You_Tube - 21.08.2011, 01:23
Re: [AJUDA] Teleporte - by Macintosh - 21.08.2011, 02:07
Re: [AJUDA] Teleporte - by You_Tube - 21.08.2011, 02:09
Respuesta: [AJUDA] Teleporte - by [Red]Maninho - 21.08.2011, 16:45
Re: [AJUDA] Teleporte - by Miqueias Barros - 21.08.2011, 16:54
Re: [AJUDA] Teleporte - by Dolby - 21.08.2011, 17:09

Forum Jump:


Users browsing this thread: 1 Guest(s)