11.08.2011, 19:39
adpta
pawn Код:
public OnPlayerCommandText(playerid,cmdtext[])
{
new
Float:p[3][MAX_PLAYERS],
Float:hh[MAX_PLAYERS],
Float:aa[MAX_PLAYERS]
;
if(strcmp(cmdtext,"/splayer",true)==0)
{
GetPlayerPos(playerid,p[0][playerid],p[1][playerid],p[2][playerid]);
GetPlayerArmour(playerid,aa[playerid]);
GetPlayerArmour(playerid,hh[playerid]);
SendClientMessage(playerid,-1,"Status salvo, /lplayer para carregalo");
return true;
}
if(strcmp(cmdtext,"/lplayer",true)==0)
{
SetPlayerPos(playerid,p[0][playerid],p[1][playerid],p[2][playerid]);
SetPlayerArmour(playerid,aa[playerid]);
SetPlayerArmour(playerid,hh[playerid]);
SendClientMessage(playerid,-1,"Status carregado.");
return true;
}
return false;
}