12.03.2011, 08:26
Try This:
pawn Код:
if (strcmp("/stats", cmdtext, true, 10) == 0)
{
new string[128], Float:pHealth, pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, sizeof(pName));
GetPlayerHealth(playerid,pHealth);
format(string,128,"|STATS|Name:[%s] Money:[%d] Score:[%d] Health:[%0.2f]",pName, GetPlayerMoney(playerid), GetPlayerScore(playerid), pHealth);
SendClientMessage(playerid,COLOR_PURPLE,string);
return 1;
}