Raised This Month: $51 Target: $400
 12% 

New Round / Player Spawn / Round Start / Round End - do Not mess it


Post New Thread Reply   
 
Thread Tools Display Modes
VEN
Veteran Member
Join Date: Jan 2005
Old 11-20-2006 , 12:52   Re: New Round/Player Spawn/Round Start/Round End - do Not mess it
Reply With Quote #31

Quote:
Still don't understand the difference between map loaded event and new round. plugin_cfg() is executed right after map has been loaded and thus the round has started. Right?
Well, but there are not only the very first round. What if i want to catch the 3rd round start or the 2nd new round events? plugin_cfg() will not help in this case. That's why usually we hooking events.
VEN is offline
Simon Logic
Senior Member
Join Date: Nov 2006
Location: RF
Old 11-21-2006 , 03:33   Re: New Round/Player Spawn/Round Start/Round End - do Not mess it
Reply With Quote #32

I thought new round is called only once per map. Well, i see new round is helpful only if freeze time is non zero. Thanx.
Simon Logic is offline
Send a message via Skype™ to Simon Logic
Zenith77
Veteran Member
Join Date: Aug 2005
Old 11-28-2006 , 17:18   Re: New Round/Player Spawn/Round Start/Round End - do Not mess it
Reply With Quote #33

No, I don't really understand why you think new round would be useful only if freeze time was zero. For future refrence, round start, etc is called like this...
  1. Event: A team wins (bomb, hostage, etc)
  2. Round End
  3. Round start
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred
Zenith77 is offline
Old 11-28-2006, 17:27
Da_sk8rboy
This message has been deleted by Brad. Reason: spam
Rolnaaba
Veteran Member
Join Date: May 2006
Old 03-27-2007 , 23:41   Re: New Round/Player Spawn/Round Start/Round End - do Not mess it
Reply With Quote #34

Code:
register_event("HLTV", "event_new_round", "a", "1=0", "2=0")   public event_new_round(/*arguments passed?*/){ }
__________________
DO NOT PM me about avp mod.
Rolnaaba is offline
teame06
i have a hat
Join Date: Feb 2005
Location: Hat City
Old 03-27-2007 , 23:59   Re: New Round/Player Spawn/Round Start/Round End - do Not mess it
Reply With Quote #35

Quote:
Originally Posted by Rolnaaba View Post
Code:
register_event("HLTV", "event_new_round", "a", "1=0", "2=0")   public event_new_round(/*arguments passed?*/){ }
None
__________________
No private support via Instant Message
GunGame:SM Released
teame06 is offline
Send a message via AIM to teame06
Rolnaaba
Veteran Member
Join Date: May 2006
Old 03-28-2007 , 01:08   Re: New Round/Player Spawn/Round Start/Round End - do Not mess it
Reply With Quote #36

ok thanx
__________________
DO NOT PM me about avp mod.
Rolnaaba is offline
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 03-30-2007 , 14:16   Re: New Round/Player Spawn/Round Start/Round End - do Not mess it
Reply With Quote #37

@VEN:
Using your "player spawn" code, "newSpawn" gets called when the player connects if the player connects via the "reconnect" command, as well as when the player spawns.
__________________
Brad is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 03-31-2007 , 05:29   Re: New Round/Player Spawn/Round Start/Round End - do Not mess it
Reply With Quote #38

I can't reproduce that.
VEN is offline
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 03-31-2007 , 10:11   Re: New Round/Player Spawn/Round Start/Round End - do Not mess it
Reply With Quote #39

Apparently it depends on the map.

"fy_poolparty" is fine.
"he_glass" forces everyone to respawn at the start of the round so you get two spawn events.
"he_tennis2" is fine until you reconnect at which point it triggers a spawn event right before you "join a team" and then again when it is really supposed to.
__________________
Brad is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 03-31-2007 , 14:16   Re: New Round/Player Spawn/Round Start/Round End - do Not mess it
Reply With Quote #40

Please reproduce the above issues while running this test sript. Attach the result spawn_test.log file.
Attached Files
File Type: sma Get Plugin or Get Source (player_spawn_test.sma - 829 views - 1.5 KB)

Last edited by VEN; 03-31-2007 at 15:03.
VEN 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 04:41.


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