Count Commands
#1

Hello , i was thinking if it's possible to count commands , Ex: when player type /stats to show
Commands Typed : ....
If it's possible how can i do that ?
Reply
#2

like command typed : 5000 ?

so make a increasing variable in onplayercommandtext!
Reply
#3

Yea , like that , i will try to do it .
Reply
#4

You can do that with YCMD.
Reply
#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
#6

works but i use ZCMD ...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)