How to: Detection?
#4

Quote:
Originally Posted by lexurs
View Post
The command that the player is going to use can be used for other things too (/me and /do). Is it possible to do this another way?
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.

"How would I be able to setup the rest of the system functioning only if you used the specific command within a specific time? Perhaps 1 minute."

I would suggest using timers.
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)