Help coding Godmode for 5secs
im coding a function that works on key E , when someone press e it gives him god mode for 5 secs but i need help in how to make a timer that when the 5secs pass the god mode function goes off.
|
Re: Help coding Godmode for 5secs
Simply use the set_task() function.
|
Re: Help coding Godmode for 5secs
well i would'nt be asking if i knew how to use it
|
Re: Help coding Godmode for 5secs
Well, mr. "best plugin maker", I doubt you managed to hook the E button but can't create a single task. Show your code, try using it and show the results.
|
Re: Help coding Godmode for 5secs
Quote:
|
Re: Help coding Godmode for 5secs
HTML Code:
#include <amxmodx> |
Re: Help coding Godmode for 5secs
Quote:
|
Re: Help coding Godmode for 5secs
I don't think you need to check if connected/alive in cmd start...and you never need to do both as alive has a connected check built in so you'd only ever need to check alive. I'd remove the entire if statement.
You do not need to check if the task exists, just call remove_task(). I'd do this PHP Code:
|
Re: Help coding Godmode for 5secs
Quote:
|
Re: Help coding Godmode for 5secs
Quote:
Quote:
|
| All times are GMT -4. The time now is 14:14. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.