12.03.2011, 08:10
Well, Guys I've Added /Stats Command But when in game i type /stats it says SERVER UNKOWN COMMAND
pawn Код:
if(strcmp(cmdtext, "/stats", true) == 0)
{
new string[128];
new Float:health;
GetPlayerHealth(playerid,health);
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, sizeof(pName));
format(string,128,"|STATS|Name:[%s] Money:[%d] Score:[%d] Health:[%d]",pName,GetPlayerMoney(playerid),GetPlayerScore(playerid),health);
SendClientMessage(playerid,COLOR_PURPLE,string);
return 1;
}