Hook changelevel
Can I hook srvcmd changelevel? Something like:
PHP Code:
|
Re: Hook changelevel
What do you want to do inside exactly ?
|
Re: Hook changelevel
I have this for a deathrun server, but when the map change, all players disconnect and if the terrorist disconnect before CTs, the server crash (the plugin will find a CT, but he will be disconnected before the 2 task execute.)
I want to hook changelevel with a bool mapend=true (And add it in the plugin_init 'false') and add PHP Code:
PHP Code:
|
Re: Hook changelevel
You could check if the player is still connected in the 2 tasks
& get a new one if he has disconnected. |
Re: Hook changelevel
Something like this? Ok, I'll try.
PHP Code:
|
Re: Hook changelevel
|
Re: Hook changelevel
I know this but there's a bug which give to the new terrorist an USP. More then, my plugin check dead CTs first and if no dead ct, it move to alive.
I've tested this version and it works. Thank you, drekes. Problem sloved, you can close the thread. |
| All times are GMT -4. The time now is 14:26. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.