[Help] Fuction only usable once
How do i make a fuction only usable once?
|
Re: [Help] Fuction only usable once
use boolean and when function runs first check that boolean should return false to run that function and when function execute then make boolean as true.
|
Re: [Help] Fuction only usable once
Quote:
|
Re: [Help] Fuction only usable once
Then, you need to save the boolean using nVault.
|
Re: [Help] Fuction only usable once
PHP Code:
And how i implement nVault in this? |
Re: [Help] Fuction only usable once
Just visit this: https://forums.alliedmods.net/showthread.php?p=2229756
|
Re: [Help] Fuction only usable once
I forgot to say, once the function is used, no outher player can use it again.
|
Re: [Help] Fuction only usable once
Just use the code from here: https://forums.alliedmods.net/showpo...7&postcount=13
|
Re: [Help] Fuction only usable once
PHP Code:
|
Re: [Help] Fuction only usable once
Sorry, after tried a few methods, I still cannot find the correct way to do as your request.
However, if you want to restrict the item for one map, I can help you. |
| All times are GMT -4. The time now is 15:32. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.