Count Commands - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Count Commands (
/showthread.php?tid=224818)
Count Commands -
Rock18 - 12.02.2011
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 ?
Re: Count Commands -
iJumbo - 12.02.2011
like command typed : 5000 ?
so make a increasing variable in onplayercommandtext!
Re: Count Commands -
Rock18 - 12.02.2011
Yea , like that , i will try to do it .
Re: Count Commands -
Mean - 12.02.2011
You can do that with YCMD.
Re: Count Commands -
iJumbo - 12.02.2011
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;
}
Re: Count Commands -
Rock18 - 12.02.2011
works but i use ZCMD ...