[AJUDA] /sp e /ip
#3

pawn Код:
new Float:Shick[MAX_PLAYERS][3];
new Float:ShickPos[MAX_PLAYERS][6];
pawn Код:
if(strcmp("/sp", cmdtext, true) == 0)
    {
     if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, Cor, "Vocк nгo й Administrador RCON!");
     GetPlayerPos(playerid, Shick[playerid][0],Shick[playerid][1],Shick[playerid][2]);
     SendClientMessage(playerid, COLOR_GRAD1, "Posiзгo Salvada (/ip)");
     return 1;
    }
pawn Код:
if(strcmp("/ip", cmdtext, true) == 0)
    {
     new pluto, mundinho;
     pluto = ReturnUser(tmp);
     mundinho = GetPlayerVirtualWorld(pluto);
     if(IsPlayerAdmin(playerid)) return SendClientMessage(playerid, Cor, "Vocк nгo й Administrador RCON!");
     if(GetPlayerState(playerid) == 2)
     {
      new jipeshick = GetPlayerVehicleID(playerid);
      SetVehiclePos(jipeshick, Shick[playerid][0],Shick[playerid][1],Shick[playerid][2]); LinkVehicleToInterior(jipeshick, 0);
      ShickPos[playerid][0] = 0.0;
      ShickPos[playerid][1] = 0.0;
     }
     else
     {
      SetPlayerPos(playerid, Shick[playerid][0],Shick[playerid][1],Shick[playerid][2]);
     }
     SetPlayerVirtualWorld(playerid, mundinho);
     SendClientMessage(playerid, COLOR_GRAD1, "Teleportado para a posiзгo salvada no (/sp)!");
     SetPlayerInterior(playerid,0);
     return 1;
    }
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)