AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   How to tell if the round started yet.... (https://forums.alliedmods.net/showthread.php?t=17943)

Batman/Gorlag 09-12-2005 05:26

How to tell if the round started yet....
 
Okay, well I finally was able to define all of the movements when you are flying and stuff, BUT there's a lil bug in my code, you can move from your starting position before the round starts!! And now I'm wondering what function or functions can allow you to tell if the round has started or not?

pdoubleopdawg 09-12-2005 05:36

I don't think the RoundStart event pertains to that. I'd say use
get_cvar_string("mp_holdtime",output,len)

Then disallow it for however long that is.. Or delay it with set_task (Depending on how the code works..)

Xanimos 09-12-2005 09:09

Its mp_freezetime (or atleast in cstrike it is)

Freecode 09-12-2005 17:52

register a log message ("RoundStart")

XxAvalanchexX 09-12-2005 18:23

Code:
new bool:round_started; public plugin_init() {    register_logevent("event_roundstart",2,"0=World triggered","1=Round_Start");    register_logevent("event_roundend",2,"0=World triggered","1=Round_End"); } public event_roundstart() {    round_started = true; } public event_roundend() {    round_started = false; }

Batman/Gorlag 09-13-2005 01:13

Hmm I just came back from inspecting the apt. and all and thanks guys. I feel that I might need to know more log messages later on in the future. So can anyone give me all the log messages you can POSSIBLY use? Cause if I just looked in the amxmodx reference I would have never figured this out. Thank you for reading this.

EDIT: One question if I put read_logdata() function inside the plugin_log() function, would I get like all the possible log messages I could use?

SECOND EDIT: Okay I found out and yes, I get bunch of helpful log messages =D, for which I can register log events.


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

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