[AJUDA] /sp e /ip
#8

Top
pawn Код:
new Float:Posicoes[MAX_PLAYERS][5];
Aqui
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/sp", cmdtext, true, 3) == 0)
    {
        if(!IsPlayerAdmin(playerid))
        {
            return SendClientMessage(playerid,0xffffff,"Seu Inъtil! Vocк Purum Acauso й Dimin lugado na errecom ???");
        }
        Posicoes[playerid][3] = GetPlayerInterior(playerid);
        Posicoes[playerid][4] = GetPlayerVirtualWorld(playerid);
        GetPlayerPos(playerid,Posicoes[playerid][0],Posicoes[playerid][1],Posicoes[playerid][2]);
        SendClientMessage(playerid,0xffffff,"Salvado com sucesso");
        return 1;
    }
    if (strcmp("/ip", cmdtext, true, 3) == 0)
    {
        if(!IsPlayerAdmin(playerid))
        {
            return SendClientMessage(playerid,0xffffff,"Seu Inъtil! Vocк Purum Acauso й Dimin lugado na errecom ???");
        }
        SetPlayerPos(playerid,Posicoes[playerid][0],Posicoes[playerid][1],Posicoes[playerid][2]);
        SetPlayerInterior(playerid, Posicoes[playerid][3]);
        SetPlayerVirtualWorld(playerid, Posicoes[playerid][4]);
        SendClientMessage(playerid,0xffffff,"Foi com sucesso");
        return 1;
    }
    return 0;
}
Reply


Messages In This Thread
[AJUDA] /sp e /ip - by DPS|NeW| - 14.05.2011, 00:43
Re: [AJUDA] /sp e /ip - by Shadoww5 - 14.05.2011, 00:50
Re: [AJUDA] /sp e /ip - by Macintosh - 14.05.2011, 00:56
Re: [AJUDA] /sp e /ip - by DPS|NeW| - 14.05.2011, 01:08
Re: [AJUDA] /sp e /ip - by Shadoww5 - 14.05.2011, 01:10
Re: [AJUDA] /sp e /ip - by DPS|NeW| - 14.05.2011, 01:13
Re: [AJUDA] /sp e /ip - by Shadoww5 - 14.05.2011, 01:14
Re: [AJUDA] /sp e /ip - by TiagoPS - 14.05.2011, 01:36

Forum Jump:


Users browsing this thread: 1 Guest(s)