[Help] Stats system
#5

Код:
#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;
}
Reply


Messages In This Thread
[Help] Stats system - by alainchaccour - 18.10.2011, 17:15
Re: [Help] Stats system - by =WoR=Varth - 18.10.2011, 17:20
Re: [Help] Stats system - by alainchaccour - 18.10.2011, 17:23
Re: [Help] Stats system - by =WoR=Varth - 18.10.2011, 17:25
Re: [Help] Stats system - by Kavinsky - 18.10.2011, 17:32
Re: [Help] Stats system - by alainchaccour - 18.10.2011, 17:32
Re: [Help] Stats system - by alainchaccour - 18.10.2011, 17:35
Re: [Help] Stats system - by Stigg - 18.10.2011, 17:36
Re: [Help] Stats system - by alainchaccour - 18.10.2011, 17:39
Re: [Help] Stats system - by Stigg - 18.10.2011, 17:49

Forum Jump:


Users browsing this thread: 1 Guest(s)