roundstart event
how do i call round start event when all players are just spawned but before freeze time?
And when round start event is called like that? PHP Code:
|
Re: roundstart event
Take a look at this tutorial - http://forums.alliedmods.net/showthread.php?t=42159 .
|
Re: roundstart event
This is also a good wiki to have laying around.
http://wiki.amxmodx.org/Half-Life_1_...s#Introduction Most of these events run through register_logevent |
Re: roundstart event
Quote:
|
Re: roundstart event
Quote:
I stand corrected. But its still good to have around, however irrelevant to this thread. |
Re: roundstart event
PHP Code:
|
Re: roundstart event
in order for the HamSpawn to be post you need a 4th argument to be 1.
Code:
RegisterHam(Ham_Spawn, "player", "HamPlayerSpawnPost")PHP Code:
and only the first person in the spawn iteration will have the HamSpawn code run on them. After that new_round will be false, and thus all if-checks will be be false. |
Re: roundstart event
You can use this, offering 2 forwards :
PHP Code:
The 2nd one is the last thing called in CHalfLifeMultiPlay::RoundRestart, so it happen after all players have been spawned. Don't rip the code to use in multiple plugin, because you gonna have unexpected results unregistering FM_PlaybackEvent on the same frame other FM_PlaybackEvent forwards are sent. If you want to use in only 1 plugin you can rip the code, else use this plugin and its forwards. PHP Code:
|
| All times are GMT -4. The time now is 05:47. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.