23.12.2013, 17:44
Код:
if (strcmp("/stats", cmdtext,true,10) == 0) { new Msg[128], Name[24]; GetPlayerName(playerid, Name, 24); format(Msg, 128, "-------------------------%s's Stats-------------------------", Name); SendClientMessage(playerid,COLOR_WHITE, Msg); format(Msg, 128, "Hand[%s] Bank[%s] Iron[%s] Wood[%s] Car1[%s] Car2[%s] AdminLevel[%s] Kills[%s]", PlayerInfo[playerid][pCash], PlayerInfo[playerid][pBank], PlayerInfo[playerid][pIron], PlayerInfo[playerid][pWood], PlayerInfo[playerid][pCarKey], PlayerInfo[playerid][pCarKey2], PlayerInfo[playerid][pAdmin], PlayerInfo[playerid][pKills]); SendClientMessage(playerid,COLOR_WHITE, Msg); format(Msg, 128, "Deaths[%s] Faction[%s]", PlayerInfo[playerid][pDeaths], PlayerInfo[playerid][pTeam]); SendClientMessage(playerid,COLOR_WHITE, Msg); }