18.10.2011, 17:32
Код:
#define dcmd(%1,%2,%3) if ((strcmp((%3)[1], #%1, true, (%2)) == 0) && ((((%3)[(%2) + 1] == 0) && (dcmd_%1(playerid, "")))||(((%3)[(%2) + 1] == 32) && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1 public OnPlayerCommandText(playerid, cmdtext[]) { dcmd(stats, 5, cmdtext); } dcmd_stats(playerid,params[]) { #pragma unused params new string[32]; format(string,sizeof(string),"Kill: %d",Killz[playerid]); SendClientMessage(playerid,-1,string); format(string,sizeof(string),"Death: %d",Deathz[playerid]); SendClientMessage(playerid,-1,string); return 1; }