Raised This Month: $ Target: $400
 0% 

detecting map end


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Sp@jk
Member
Join Date: May 2010
Location: Serbia
Old 10-22-2011 , 16:59   detecting map end
Reply With Quote #1

how can I detect map end, but before it hapens, something as map end pre
I need this so I can set some other map to be the next one
Sp@jk is offline
Stereo
Veteran Member
Join Date: Dec 2010
Old 10-22-2011 , 17:19   Re: detecting map end
Reply With Quote #2

You can check the timeleft
Stereo is offline
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 10-22-2011 , 17:28   Re: detecting map end
Reply With Quote #3

Ops,

#2

Or check timeleft.sma (Included on default AMX Package)
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 

Last edited by ^SmileY; 10-22-2011 at 17:31. Reason: Ops
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 10-22-2011 , 21:01   Re: detecting map end
Reply With Quote #4

Quote:
Originally Posted by ^SmileY View Post
Or check timeleft.sma (Included on default AMX Package)
Not relevant.

I would hook intermission like in nextmap.sma. See register_event("30", ...).
__________________

Last edited by fysiks; 10-22-2011 at 21:03.
fysiks is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 10-23-2011 , 06:03   Re: detecting map end
Reply With Quote #5

Quote:
Originally Posted by fysiks View Post
Not relevant.

I would hook intermission like in nextmap.sma. See register_event("30", ...).
This way you will detect when the map is changed by the server because of the end of timelimit.
If the map is changed because of changelevel command, the intermission event won't be send so you won't catch it, same with mapchooser plugin, if it is changed by the plugin, the intermission event sent by the plugin won't be hooked by your plugin.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 10-23-2011 , 13:10   Re: detecting map end
Reply With Quote #6

Quote:
Originally Posted by ConnorMcLeod View Post
This way you will detect when the map is changed by the server because of the end of timelimit.
And that is what he asked for. If it's changed manually he obviously doesn't need to modify the map choice. If he did want something like that then he would need to modify the plugin that has the functions that he wants to intercept.
__________________
fysiks is offline
Sp@jk
Member
Join Date: May 2010
Location: Serbia
Old 10-23-2011 , 13:33   Re: detecting map end
Reply With Quote #7

Quote:
Originally Posted by fysiks View Post
Not relevant.

I would hook intermission like in nextmap.sma. See register_event("30", ...).
thanks
Sp@jk is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 10-23-2011 , 16:49   Re: detecting map end
Reply With Quote #8

Quote:
Originally Posted by fysiks View Post
And that is what he asked for. If it's changed manually he obviously doesn't need to modify the map choice. If he did want something like that then he would need to modify the plugin that has the functions that he wants to intercept.
I haven't said that the method is bad ;)
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
rx1983
Senior Member
Join Date: Jan 2009
Location: BRASIL
Old 11-19-2011 , 15:25   Re: detecting map end
Reply With Quote #9

after all, can someone give an example of taking the event the end of the round?
__________________
rx1983 is offline
Send a message via MSN to rx1983
mrhellish
Junior Member
Join Date: Jun 2010
Old 11-19-2011 , 16:36   Re: detecting map end
Reply With Quote #10

What about public plugin_end()?
mrhellish 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 03:13.


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