Raised This Month: $ Target: $400
 0% 

Ham_Spawn


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 06-23-2009 , 08:31   Ham_Spawn
Reply With Quote #1

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"
???

Last edited by xbatista; 06-23-2009 at 09:52.
xbatista is offline
Send a message via Skype™ to xbatista
minimiller
Veteran Member
Join Date: Aug 2007
Location: United Kingdom
Old 06-23-2009 , 09:00   Re: Ham_Spawn
Reply With Quote #2

HLTV hooks round start
i believe players spawn 1 server frame after that
__________________
minimiller is offline
Send a message via MSN to minimiller
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 06-23-2009 , 09:01   Re: Ham_Spawn
Reply With Quote #3

Whhhat ? Ham_Spawn (player) called when player spawns even on round start
__________________
xPaw is offline
minimiller
Veteran Member
Join Date: Aug 2007
Location: United Kingdom
Old 06-23-2009 , 09:08   Re: Ham_Spawn
Reply With Quote #4

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
__________________

Last edited by minimiller; 06-23-2009 at 09:20.
minimiller is offline
Send a message via MSN to minimiller
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 06-23-2009 , 09:43   Re: Ham_Spawn
Reply With Quote #5

I'm just asking if Ham_Spawn too called in HLTV ?
xbatista is offline
Send a message via Skype™ to xbatista
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 06-23-2009 , 09:45   Re: Ham_Spawn
Reply With Quote #6

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.
__________________
hleV is offline
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 06-23-2009 , 09:52   Re: Ham_Spawn
Reply With Quote #7

ok
xbatista is offline
Send a message via Skype™ to xbatista
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 06-23-2009 , 09:59   Re: Ham_Spawn
Reply With Quote #8

When a new round is called players spawn right after.
__________________
Arkshine is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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