Count Commands
#5

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    SetPVarInt(playerid, "Cmds", GetPVarInt(playerid, "Cmds") + 1);
    if (strcmp("/mycommand", cmdtext, true, 10) == 0)
    {
        new string[128];
        format(string,sizeof(string),"Command typed: %d",GetPVarInt(playerid, "Cmds"));
        SendClientMessage(playerid,color,string);
        return 1;
    }
    return 0;
}
Reply


Messages In This Thread
Count Commands - by Rock18 - 12.02.2011, 14:07
Re: Count Commands - by iJumbo - 12.02.2011, 14:23
Re: Count Commands - by Rock18 - 12.02.2011, 14:27
Re: Count Commands - by Mean - 12.02.2011, 14:53
Re: Count Commands - by iJumbo - 12.02.2011, 14:55
Re: Count Commands - by Rock18 - 12.02.2011, 15:09

Forum Jump:


Users browsing this thread: 2 Guest(s)