AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   What's event for round start? (https://forums.alliedmods.net/showthread.php?t=171090)

Evaldas.Grigas 11-01-2011 11:52

What's event for round start?
 
Title.

Arkshine 11-01-2011 12:11

Re: What's event for round start?
 
You should really learn to search BEFORE. Each time you ask something already asked/answered a billion of times. Please SEARCH before posting.

Start with the tutorial section.

joshknifer 11-01-2011 13:04

Re: What's event for round start?
 
http://forums.alliedmods.net/showthread.php?t=42159

kiki33hun 11-02-2011 08:57

Re: What's event for round start?
 
Roundstart event:

Code:

register_logevent("logevent_round_start", 2, "0=World triggered", "1=Round_Start")

Dark Style 11-02-2011 09:48

Re: What's event for round start?
 
You can do this too with:

Code:

#include <amxmodx>
#include <hamsandwich>

public plugin_init()
        RegisterHam(Ham_CS_RoundRespawn, "player", "ham_round", 1);

public ham_round(id) { }


sake 11-02-2011 18:00

Re: What's event for round start?
 
@Dark Style:

Your method registers on Player spawn not on round start. CS_RoundRespawn will be called 32 times for 32 players on a server. But the real round start event occurs one single time.

AlgoChikitito 11-02-2011 18:32

Re: What's event for round start?
 
PHP Code:

#include < amxmodx>

public plugin_init ( )
{
     
register_event "HLTV" "clcmd_startround" "a" "1=0" "2=0" )  
}

public 
clcmd_startround ( )
{
     
// Your Code Here



Sylwester 11-02-2011 19:12

Re: What's event for round start?
 
That's not round start! Why are posting more stuff (mostly incorrect) when the solution has already been posted (see post #3) ? You will only confuse inexperienced users who happen to see this thread.


All times are GMT -4. The time now is 14:20.

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