Raised This Month: $ Target: $400
 0% 

Catch a map changing


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
_Serj
New Member
Join Date: Mar 2005
Old 03-14-2005 , 07:23   Catch a map changing
Reply With Quote #1

Hi!
Can somebody help me?

I want to handle a map changing event. I code next:
Code:
public plugin_init() {     ...     register_logevent("started_map", 3, "0=Started map")     ... } public started_map() {     server_print("Map started...")     ...     return PLUGIN_CONTINUE  }
But nothing happens.

If I catch the round start event:
Code:
register_logevent("round_start", 2, "1=Round_Start") ... public round_start() {     server_print("Round started...")     ...     return PLUGIN_CONTINUE  }
All is work!

Where is my mistake?
_Serj is offline
PM
hello, i am pm
Join Date: Jan 2004
Location: Canalization
Old 03-14-2005 , 11:19  
Reply With Quote #2

Do your map-changing-handling-code in your plugin_init or plugin_cfg (if you rely on all plugin_inits being already called).
__________________
hello, i am pm
PM is offline
_Serj
New Member
Join Date: Mar 2005
Old 03-15-2005 , 01:44  
Reply With Quote #3

Quote:
Originally Posted by PM
Do your map-changing-handling-code in your plugin_init or plugin_cfg (if you rely on all plugin_inits being already called).
Sorry PM, but I don't understand what you mean (my native language is Russian).

Can you explain it more simpler?
Thanks!

Stop... Do you mean when the map is changing the amxx don't call plugin_init yet? So what to do?!!
_Serj is offline
Freecode
Never Fall Asleep
Join Date: Jan 2004
Old 03-15-2005 , 01:48  
Reply With Quote #4

on Govarit shto v plugin_init() ti mojes delat shto tebe nado potomashta plugin_init() gets called kogda map zagrujilac
Freecode is offline
_Serj
New Member
Join Date: Mar 2005
Old 03-15-2005 , 02:10  
Reply With Quote #5

Quote:
Originally Posted by Freecode
on Govarit shto v plugin_init() ti mojes delat shto tebe nado potomashta plugin_init() gets called kogda map zagrujilac
Thanks pal!
_Serj is offline
Freecode
Never Fall Asleep
Join Date: Jan 2004
Old 03-15-2005 , 12:08  
Reply With Quote #6

Freecode 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:05.


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