Raised This Month: $ Target: $400
 0% 

What's event for round start?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Evaldas.Grigas
Senior Member
Join Date: Sep 2011
Location: Lithuania
Old 11-01-2011 , 11:52   What's event for round start?
Reply With Quote #1

Title.
__________________
Please enter this website everyday: http://forums.alliedmods.net/showthread.php?t=169067
Evaldas.Grigas is offline
Send a message via Skype™ to Evaldas.Grigas
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 11-01-2011 , 12:11   Re: What's event for round start?
Reply With Quote #2

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.
__________________

Last edited by Arkshine; 11-01-2011 at 12:11.
Arkshine is offline
joshknifer
Veteran Member
Join Date: Jun 2011
Location: Denver, CO
Old 11-01-2011 , 13:04   Re: What's event for round start?
Reply With Quote #3

http://forums.alliedmods.net/showthread.php?t=42159
__________________
joshknifer is offline
Send a message via Skype™ to joshknifer
kiki33hun
Veteran Member
Join Date: Jul 2011
Location: Magyarország
Old 11-02-2011 , 08:57   Re: What's event for round start?
Reply With Quote #4

Roundstart event:

Code:
register_logevent("logevent_round_start", 2, "0=World triggered", "1=Round_Start")
__________________
kiki33hun is offline
Dark Style
BANNED
Join Date: Feb 2011
Location: Brazil
Old 11-02-2011 , 09:48   Re: What's event for round start?
Reply With Quote #5

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) { }
Dark Style is offline
sake
Senior Member
Join Date: Jul 2011
Old 11-02-2011 , 18:00   Re: What's event for round start?
Reply With Quote #6

@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.
__________________
sake is offline
AlgoChikitito
BANNED
Join Date: Feb 2011
Location: Espańa
Old 11-02-2011 , 18:32   Re: What's event for round start?
Reply With Quote #7

PHP Code:
#include < amxmodx>

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

public 
clcmd_startround ( )
{
     
// Your Code Here

AlgoChikitito is offline
Sylwester
Veteran Member
Join Date: Oct 2006
Location: Poland
Old 11-02-2011 , 19:12   Re: What's event for round start?
Reply With Quote #8

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.
__________________
Impossible is Nothing
Sylwester is offline
Reply


Thread Tools
Display Modes

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 14:20.


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