AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   How do i make functions start every new round? And... (https://forums.alliedmods.net/showthread.php?t=25227)

xaz1 03-10-2006 11:46

How do i make functions start every new round? And...
 
How do i make functions start every new round automatic?
And without needing to type the clcmd command everytime. :?:

VEN 03-10-2006 14:26

Code:
register_event("HLTV", "event_new_round", "a", "1=0", "2=0")

xaz1 03-11-2006 09:20

Can anyone explain that code in details? :D :roll:

VEN 03-11-2006 11:52

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 }

wouter 03-11-2006 12:14

think he means the flags. and if he dont meant that then i want to ask were did you find the flags? :D

VEN 03-11-2006 13:37

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.

Werewolf 03-11-2006 14:13

Another code for new round events :wink:
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 :)

Xanimos 03-11-2006 16:20

Werewolf...just to let you know...technically that isnt a HUD Reset that just a new round.

VEN 03-12-2006 03:05

That is round start but not new round event.

xaz1 03-13-2006 03:20

thank you all :D


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

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