Stop a function on round end
Hey modders!
I would like to ask your help. I would need a code that disables a function on the end of the round. Thank you! |
Re: Stop a function on round end
a global variable, hook round end event set the varible true, hook round start to set it back to false and add a check for that variable in the function
what I just said in code terms: PHP Code:
|
Re: Stop a function on round end
I will try it...Thank you man :) +karma^^ and i wanna use it to laser and tripmine :)
|
Re: Stop a function on round end
How can i use it for the laser/tripmine entity mod?
http://forums.alliedmods.net/showthread.php?p=221113 So i wanna to switch off automatically the laser on the round's end (When the last player die or the time is over) Thank you... +karma for the answer |
Re: Stop a function on round end
Pff that's a big topic with too many versions and too much code... :}
Well, search for the function where you place the mine, add a check at start for that variable... PHP Code:
|
Re: Stop a function on round end
Thank you man :DI did it and it works now properly... thank you mate :)
|
| All times are GMT -4. The time now is 01:37. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.