AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [Solved]First Event Called (https://forums.alliedmods.net/showthread.php?t=148715)

#8 SickneSS 01-28-2011 03:31

[Solved]First Event Called
 
Which is the first event called when map starts?

Exolent[jNr] 01-28-2011 04:02

Re: First Event Called
 
plugin_precache().
It is called before entities are even created in the map (like spawns and lights).

#8 SickneSS 01-28-2011 04:05

Re: First Event Called
 
Quote:

Originally Posted by Exolent[jNr] (Post 1401430)
plugin_precache().
It is called before entities are even created in the map (like spawns and lights).

But I can use this to set a boolean to true?...I want this because I need to check the first blood in free for all.

-Solved-
I just use debug in a client_print and I get the solution ^_x

Thanks Exolent^_x

fysiks 01-28-2011 18:40

Re: [Solved]First Event Called
 
You can set it in plugin_precache(), plugin_init(), plugin_natives() all of which happen before players are even on the server.

ConnorMcLeod 01-28-2011 18:43

Re: [Solved]First Event Called
 
new bool:BoleanVar = true

fysiks 01-28-2011 18:50

Re: [Solved]First Event Called
 
Quote:

Originally Posted by ConnorMcLeod (Post 1401916)
new bool:BoleanVar = true

lol, can't believe that I didn't think of the simplest answer! Oh well.

meTaLiCroSS 01-28-2011 20:08

Re: [Solved]First Event Called
 
Quote:

Originally Posted by ConnorMcLeod (Post 1401916)
new bool:BoleanVar = true

Also:

PHP Code:

new bool:BooleanArray[33] = { true, ... } 


#8 SickneSS 01-29-2011 11:00

Re: [Solved]First Event Called
 
Quote:

Originally Posted by ConnorMcLeod (Post 1401916)
new bool:BoleanVar = true

Quote:

Originally Posted by fysiks (Post 1401920)
lol, can't believe that I didn't think of the simplest answer! Oh well.

Quote:

Originally Posted by meTaLiCroSS (Post 1401950)
Also:

PHP Code:

new bool:BooleanArray[33] = { true, ... } 


Haha,thanks to all,how fysiks said,I can't believe this :p


All times are GMT -4. The time now is 16:19.

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