[SOLVED] Player Spawn Or Round Start?
ive got a script that fades screen for CT and sets time to unfade.
and then unfreeze the CT's but if i use the code in Player Spawn... it works as long as everyone spawns same time(round start) but then starts bugging when people spawn at different times... and then i use Round Start event, and nothing happens it doesnt work.
Spoiler
|
Re: Player Spawn Or Round Start?
public LogEvent_RoundStart(id)
id O_O ? This is a global Event. |
Re: Player Spawn Or Round Start?
WTF?!
PHP Code:
Use this: PHP Code:
|
Re: Player Spawn Or Round Start?
for (new i = 1; i <= 32; i++)
--> new g_iMaxClients; plugin_init( ) g_iMaxClients = get_maxplayers( ); for( new i = 1; i <= g_iMaxClients; i++ ) |
Re: Player Spawn Or Round Start?
Quote:
PHP Code:
Solution ==> Post #4 and dont forget to add the team check |
Re: Player Spawn Or Round Start?
Don't forget to add a connected/alive check because cs_get_user_team will throw an error if the user is not in game yet.
|
Re: Player Spawn Or Round Start?
thanks heaps guys. will edit code :-)
|
Re: Player Spawn Or Round Start?
PHP Code:
nothing happens. |
Re: Player Spawn Or Round Start?
PHP Code:
|
Re: Player Spawn Or Round Start?
Quote:
PHP Code:
_____________________________________________ ______________________________________ [EDIT] when testing with myself it doesnt do anything when i first restart server.. but once DIE and round starts again it all seems to work... thanks. |
| All times are GMT -4. The time now is 20:32. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.