AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Event Help (https://forums.alliedmods.net/showthread.php?t=3376)

JonnyH 07-05-2004 05:50

Event Help
 
Hi,

Is there an event that indicates a new map has been loaded in CS?

I am trying to run a script as the new map is loaded and\or as a player connects. I tried looking at the list the Function search thing provides in register_event, but there are no lists for CS.

Any help would be great, thanks.

PM 07-05-2004 07:17

plugin_init is called on mapchange :)

Ryan 07-05-2004 10:44

yeah there's plugin_init() on mapchange, as well as many events that can be called from register_event()

example:
Code:
register_event( "ResetHUD", "Event_PlayerSpawn", "b" );

is called for each player when they spawn (at the start of the round(s)).


All times are GMT -4. The time now is 14:42.

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