30.09.2012, 11:55
pawn Код:
COMMAND:stats(playerid, params[])
{
new id;
if(sscanf(params,"u",id)) return SendClientMessage(playerid,COLOR_RED,"> Usage: /Stats <id>");
if(IsPlayerConnected(id) && !IsPlayerNPC(id))
{
new account = PlayerInfo[id][pAccount];
new cash = GetPlayerMoney(id);
new coordsstring[64];
format(coordsstring, sizeof(coordsstring), "Cash:[$%d] Bank:[$%d]", cash, account);
SendClientMessage(playerid, COLOR_WHITE, coordsstring);
}
else SendClientMessage(playerid,COLOR_RED,"> Invalid PlayerID");
return 1;
}