14.05.2011, 00:56
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;
}