16.03.2013, 16:34
pawn Код:
CMD:check(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] >=2)
{
new target;
if(sscanf(params, "u",target)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /check [playerid]");
if(!IsPlayerConnected(target)) return SendClientMessage(playerid,COLOR_RED, "ERROR: Player ID is not connected.");
new string[200];
format(string,sizeof(string), "%s's current statistics: Money: %d || VIP: %d || Kills: %d || Deaths: %d || Score: %d || Admin: %s || Talent: %s",GetName(target),
PlayerInfo[target][pCash],
PlayerInfo[target][pVip],
PlayerInfo[target][pKills],
PlayerInfo[target][pDeaths],
PlayerInfo[target][pScore],
GetAdminLvlName(target),
GetTalentName(target));
SendClientMessage(playerid,COLOR_GREEN, string);
}
else return SendClientMessage(playerid,COLOR_GREY, ERROR);
return 1;
}