AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Check roundstart natural-selection (https://forums.alliedmods.net/showthread.php?t=57060)

DTE 06-27-2007 10:53

Check roundstart natural-selection
 
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")
 }
}


kmal2t 06-28-2007 00:30

Re: Check roundstart natural-selection
 
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.

toazron1 06-30-2007 00:15

Re: Check roundstart natural-selection
 
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.


All times are GMT -4. The time now is 21:24.

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