Raised This Month: $ Target: $400
 0% 

Check roundstart natural-selection


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
DTE
Junior Member
Join Date: Nov 2006
Old 06-27-2007 , 10:53   Check roundstart natural-selection
Reply With Quote #1

Is there a way to check when a round starts in natural-selection (after the four beeps)?

I found this thread, but I doesn't seem to work
http://forums.alliedmods.net/showthread.php?t=42159

Code:
public plugin_init()
{
 register_logevent("round_start", 2, "1=Round_Start")
}
public round_start() {
 
 new players[32], num
 get_players(players, num)
 
 new player
 for(new i = 0; i < num; i++)
 {
  player = players[i]
  client_print(player, print_chat, "start")
 }
}
DTE is offline
kmal2t
BANNED
Join Date: Apr 2006
Old 06-28-2007 , 00:30   Re: Check roundstart natural-selection
Reply With Quote #2

That tut. is CS-specific. Use a logevent plugin to find some event that may be at the end of the round with a set_task to the function of your round start.
kmal2t is offline
toazron1
Senior Member
Join Date: Oct 2006
Old 06-30-2007 , 00:15   Re: Check roundstart natural-selection
Reply With Quote #3

The even you are looking for is called Countdown.

Code:
register_event("Countdown", "event_RoundStart", "a")
EDIT: This is called about the time you start to hear the beeping before round start.
__________________

Last edited by toazron1; 06-30-2007 at 13:02. Reason: mixed up names
toazron1 is offline
Send a message via AIM to toazron1
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 21:24.


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