Raised This Month: $ Target: $400
 0% 

How do i make functions start every new round? And...


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
xaz1
Junior Member
Join Date: Sep 2005
Old 03-10-2006 , 11:46   How do i make functions start every new round? And...
Reply With Quote #1

How do i make functions start every new round automatic?
And without needing to type the clcmd command everytime.
xaz1 is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 03-10-2006 , 14:26  
Reply With Quote #2

Code:
register_event("HLTV", "event_new_round", "a", "1=0", "2=0")
VEN is offline
xaz1
Junior Member
Join Date: Sep 2005
Old 03-11-2006 , 09:20  
Reply With Quote #3

Can anyone explain that code in details?
xaz1 is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 03-11-2006 , 11:52  
Reply With Quote #4

Code:
#include <amxmodx> public plugin_init() {     register_event("HLTV", "event_new_round", "a", "1=0", "2=0")   } public event_new_round() {     // put your functions here }
VEN is offline
wouter
Senior Member
Join Date: Feb 2005
Location: Belgium
Old 03-11-2006 , 12:14  
Reply With Quote #5

think he means the flags. and if he dont meant that then i want to ask were did you find the flags?
wouter is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 03-11-2006 , 13:37  
Reply With Quote #6

This is not the flags but conditions (message arguments in fact).
The first argument is the player index and the second one seems some kind of rate which Auto Director uses to determine which game event is more "hot". Not sure though.
VEN is offline
Werewolf
Senior Member
Join Date: Jan 2006
Location: Sweden
Old 03-11-2006 , 14:13  
Reply With Quote #7

Another code for new round events
Code:
public plugin_init() { //CODE HERE register_logevent("ResetHUD", 2, "0=World triggered", "1=Round_Start") } public ResetHUD { //CODE HERE }
The other one wont work for me so I recommend this one
Werewolf is offline
Xanimos
Veteran Member
Join Date: Apr 2005
Location: Florida
Old 03-11-2006 , 16:20  
Reply With Quote #8

Werewolf...just to let you know...technically that isnt a HUD Reset that just a new round.
Xanimos is offline
Send a message via AIM to Xanimos Send a message via MSN to Xanimos
VEN
Veteran Member
Join Date: Jan 2005
Old 03-12-2006 , 03:05  
Reply With Quote #9

That is round start but not new round event.
VEN is offline
xaz1
Junior Member
Join Date: Sep 2005
Old 03-13-2006 , 03:20  
Reply With Quote #10

thank you all
xaz1 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 20:24.


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