10.07.2010, 18:53
(
Последний раз редактировалось Adil; 10.07.2010 в 19:56.
)
This on 'OnPlayerCommandtext':
pawn Код:
new playername[MAX_PLAYER_NAME];
pawn Код:
if(strcmp(cmd, "/stats", true) == 0)
{
if(IsPlayerConnected(playerid))
{
SendClientMessage(playerid, 0xFFFFFFF,"___________________________________________");
format(string, sizeof(string),"Money: %d", GetPlayerMoney(playerid));
SendClientMessage(playerid,0xFFFFFFFF,string);
format(string, sizeof(string),"Score: %d", GetPlayerScore(playerid));
SendClientMessage(playerid, 0xFFFFFFF,"___________________________________________");
}
return 1;
}