AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   hl1 map end (https://forums.alliedmods.net/showthread.php?t=233436)

vamppa 01-14-2014 23:32

hl1 map end
 
Hello

Id like to show a hud message to client during the Intermission, when the scoreboard is shown before map end.
How would that be done?

greetz

fysiks 01-15-2014 00:36

Re: hl1 map end
 
Have you tried searching? I found this in less than 30 seconds by simply searching for "intermission" in the Scripting Help forum.

Code:

register_event("30", "function_here", "a")

hornet 01-15-2014 04:11

Re: hl1 map end
 
You can't display a hud message during Intermission. You would need to send SVC_FINALE on your Intermission hook before you display it.

vamppa 01-15-2014 09:00

Re: hl1 map end
 
yeah ive tried searching before posting.
came across this

PHP Code:

register_event("30""EV_InterMission""a" ); 

which ive tried to test with
PHP Code:

client_print(0,print_chat,"Map end"

It didn't work.
Is the event called 30 in cs1.6 ?
I wonder if it is called the same or different in hl1.
Quote:

Originally Posted by hornet
You would need to send SVC_FINALE on your Intermission hook before you display it.

How would this be done?

Ok think I got that part sorted, however now the scoreboard itself doesn't show up brb.
Sorted that as well, however now when the scoreboard shows up if you press fire the windows mouse cursor will appear and it will take a while waiting to change map.

hornet 01-15-2014 16:24

Re: hl1 map end
 
Yes the events are the same. Keep in mind that Intermission is only sent when the maps time limit runs out or reaches its total round count - not when the map is changed by an admin.

ConnorMcLeod 01-16-2014 00:40

Re: hl1 map end
 
engclient_print with print_center should work at intermission.


All times are GMT -4. The time now is 10:15.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.