get_timeleft function
*sorry for my bad english, i'm using google translator
Hello guys, I think this is the right section for my question, I'm trying to code a plugin, my first question I was able to solve, can be seen here https://forums.alliedmods.net/showthread.php?t=326024 now what i want to do is make this plugin run when the map time runs out. I'm not able to use the get_timeleft function currently the code looks like this Code:
/* Plugin generated by AMXX-Studio */I tried like that Code:
public plugin_init(){I also tried like this: Code:
public plugin_init(){could someone help me how should i do? |
Re: get_timeleft function
First, you need to understand that plugin_init() is called only once when the plugin is initialized.
It sounds like you probably need the event when the scoreboard comes up (which occurs before the map changes). This can be done by hooking "intermission": Code:
plugin_init() |
Re: get_timeleft function
Quote:
Code:
/* Plugin generated by AMXX-Studio */now i'm trying to make the plugin ignore the existing top15 administrators |
Re: get_timeleft function
You should put the code from timer_task inside plugin_cfg forward and instead of doing server_cmd with "tempadm" just call the function directly.
|
| All times are GMT -4. The time now is 13:54. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.