10.07.2010, 19:57
pawn Код:
if(strcmp(cmd, "/stats", true) == 0)
{
if(IsPlayerConnected(playerid))
{
SendClientMessage(playerid, 0xFFFFFFF,"___________________________________________");
GetPlayerName(playerid, playername, sizeof(playername));
format(string, sizeof(string),"Name: %s", playername);
SendClientMessage(playerid,0xFFFFFFFF,string);
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;
}