How to: Detection?
#5

Quote:
Originally Posted by K9IsGodly
View Post
What he gave you would work with any command. Just take this:

PHP Code:
CMD:cmd(playeridparams[]) 
{
    
// Do stuff here
    
UsedCmd[playerid]++; // This will increase it +1

And adapt it to your command of choice..

PHP Code:
CMD:me(playeridparams[])
{
   
// The command etc
   
UsedCmd[playerid]++;

But of course you must define the variable of UsedCmd and you of course would want to set it to 0 when they join, as Lynn showed.
Thank you, I understood after looking twice.
Reply


Messages In This Thread
How to: Detection? - by lexurs - 20.05.2014, 21:58
Re: How to: Detection? - by Lynn - 20.05.2014, 23:10
Re: How to: Detection? - by lexurs - 20.05.2014, 23:23
Re: How to: Detection? - by K9IsGodly - 20.05.2014, 23:36
Re: How to: Detection? - by lexurs - 20.05.2014, 23:38
Re: How to: Detection? - by Lynn - 20.05.2014, 23:52
Re: How to: Detection? - by arakuta - 20.05.2014, 23:57
Re: How to: Detection? - by lexurs - 21.05.2014, 00:05
Re: How to: Detection? - by Lynn - 21.05.2014, 00:20

Forum Jump:


Users browsing this thread: 5 Guest(s)