AlliedModders

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

xbatista 06-23-2009 08:31

Ham_Spawn
 
Is Ham_Spawn ( player spawn ) too called on round starting, when player is spawned
PHP Code:

register_event("HLTV""event_new_round""a""1=0""2=0"

???

minimiller 06-23-2009 09:00

Re: Ham_Spawn
 
HLTV hooks round start
i believe players spawn 1 server frame after that

xPaw 06-23-2009 09:01

Re: Ham_Spawn
 
Whhhat ? Ham_Spawn (player) called when player spawns even on round start

minimiller 06-23-2009 09:08

Re: Ham_Spawn
 
PHP Code:

#include <amxmodx>
#include <hamsandwich>

public plugin_init()
{
         
register_plugin("prove xpaw wrong""1.0""Stewie!");
         
RegisterHam(Ham_Spawn"player""player_spawn"1);
         
register_event("HLTV""round_start""a""1=0""2=0");
}

public 
round_start()
{
         
client_print(0print_chat"round_start");
}

public 
player_spawn(id)
{
         
client_print(idprint_chat"player_spawn");


guaranteed round_start is called 1st

xbatista 06-23-2009 09:43

Re: Ham_Spawn
 
I'm just asking if Ham_Spawn too called in HLTV ?

hleV 06-23-2009 09:45

Re: Ham_Spawn
 
What do you mean "Ham_Spawn called in HLTV"? Ham_Spawn is called when player spawns and HLTV is called on the new round.

Usually player spawns (and Ham_Spawn is called) at about the same time when HLTV is called.

xbatista 06-23-2009 09:52

Re: Ham_Spawn
 
ok

Arkshine 06-23-2009 09:59

Re: Ham_Spawn
 
When a new round is called players spawn right after.


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

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