[Ajuda] 2 Comandos
#3

comando ir, ta bem basicгo
pawn Код:
if(strcmp(cmd, "/ir", true) == 0)
    {
        if (PlayerInfo[playerid][pAdmin] >= 1)
        {
            tmp = strtok(cmdtext,idx);
            new playersip[256];
            if(!strlen(tmp))
            {
                SendClientMessage(playerid,Vermelho,"| ERRO | /ir [Player ID/Nome]");
                return 1;
            }
            giveplayerid = ReturnUser(tmp);
            GetPlayerPos(giveplayerid, pos[0], pos[1], pos[2]);
            SetPlayerPos(playerid, pos[0], pos[1], pos[2]);
            SetPlayerInterior(playerid, GetPlayerInterior(giveplayerid));
            SetPlayerVirtualWorld(playerid, GetPlayerVirtualWorld(giveplayerid));
        }
        return 1;
    }
Reply


Messages In This Thread
2 Comandos - by FabioGTP - 26.05.2014, 20:44
Re: 2 Comandos - by Alwe - 26.05.2014, 21:09
Re: 2 Comandos - by MatheusDalZot - 26.05.2014, 21:17
Re: 2 Comandos - by FabioGTP - 26.05.2014, 21:36
Re: 2 Comandos - by Alwe - 26.05.2014, 21:38
Re: 2 Comandos - by FabioGTP - 26.05.2014, 21:54
Re: 2 Comandos - by Alwe - 26.05.2014, 22:00
Re: 2 Comandos - by MatheusDalZot - 26.05.2014, 22:04

Forum Jump:


Users browsing this thread: 2 Guest(s)