11.08.2011, 02:30
pawn Код:
new Float:Shick[MAX_PLAYERS][3];
new Float:ShickPos[MAX_PLAYERS][6];
pawn Код:
if(strcmp("/sp", cmdtext, true) == 0)
{
GetPlayerPos(playerid, Shick[playerid][0],Shick[playerid][1],Shick[playerid][2]);
SendClientMessage(playerid, COLOR_WHITE, "[INFORMAЗГO] A posiзгo foi salva! Digite {FFFF00}/ip {FFFFFF}para ir atй a posiзгo.");
return 1;
}
if(strcmp("/ip", cmdtext, true) == 0)
{
new tmp[128];
new pluto, mundinho;
pluto = ReturnUser(tmp);
mundinho = GetPlayerVirtualWorld(pluto);
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_WHITE, "[INFORMAЗГO] Vocк foi teleportado para a posiзгo que vocк salvou!");
SetPlayerInterior(playerid,0);
return 1;
}