Raised This Month: $ Target: $400
 0% 

How to tell if the round started yet....


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Batman/Gorlag
Senior Member
Join Date: Aug 2005
Old 09-12-2005 , 05:26   How to tell if the round started yet....
Reply With Quote #1

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?
__________________
GRR If only the amxmod programming were in Java.....
Java and C used to be two different languages, now Java is turning into another C. My logevent plugin
Batman/Gorlag is offline
pdoubleopdawg
Senior Member
Join Date: Aug 2005
Old 09-12-2005 , 05:36  
Reply With Quote #2

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..)
pdoubleopdawg is offline
Xanimos
Veteran Member
Join Date: Apr 2005
Location: Florida
Old 09-12-2005 , 09:09  
Reply With Quote #3

Its mp_freezetime (or atleast in cstrike it is)
Xanimos is offline
Send a message via AIM to Xanimos Send a message via MSN to Xanimos
Freecode
Never Fall Asleep
Join Date: Jan 2004
Old 09-12-2005 , 17:52  
Reply With Quote #4

register a log message ("RoundStart")
Freecode is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 09-12-2005 , 18:23  
Reply With Quote #5

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; }
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
Batman/Gorlag
Senior Member
Join Date: Aug 2005
Old 09-13-2005 , 01:13  
Reply With Quote #6

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.
__________________
GRR If only the amxmod programming were in Java.....
Java and C used to be two different languages, now Java is turning into another C. My logevent plugin
Batman/Gorlag 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 14:30.


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