Raised This Month: $51 Target: $400
 12% 

detecting map end


Post New Thread Reply   
 
Thread Tools Display Modes
rx1983
Senior Member
Join Date: Jan 2009
Location: BRASIL
Old 11-19-2011 , 19:37   Re: detecting map end
Reply With Quote #11

ok, I will do some tests ...
PHP Code:
public plugin_end (  ) 
also found:
PHP Code:
public  server_changelevel map[] ) 
or
  
get_timeleft (  ) 
most do not know how to use


PHP Code:
#include <amxmodx>
#include <fakemeta> 

public plugin_init() 
 {
    
register_plugin("changelevel test""1.0""bailopan");
    
register_forward(FM_ChangeLevel"eng_changelevel")
 }

 public 
eng_changelevel(const map[])

 {
    
log_amx("changing to map: %s"map)
 } 
__________________

Last edited by rx1983; 11-19-2011 at 19:38.
rx1983 is offline
Send a message via MSN to rx1983
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 11-25-2011 , 00:40   Re: detecting map end
Reply With Quote #12

Quote:
Originally Posted by rx1983 View Post
after all, can someone give an example of taking the event the end of the round?
1. Your question is unrelated to this thread.
2. Search: http://forums.alliedmods.net/showthread.php?t=42159
__________________
fysiks is offline
raghunarnindi001
Member
Join Date: Apr 2011
Old 11-25-2011 , 07:49   Re: detecting map end
Reply With Quote #13

Is this one correct ??
Quote:
new maptime = get_timeleft()
if( maptime < (ur desired time))
{

..............

}
raghunarnindi001 is offline
rx1983
Senior Member
Join Date: Jan 2009
Location: BRASIL
Old 11-26-2011 , 09:33   Re: detecting map end
Reply With Quote #14

Quote:
Originally Posted by fysiks View Post
1. Your question is unrelated to this thread.
2. Search: http://forums.alliedmods.net/showthread.php?t=42159
I am looking for as Captaris end of the map and not the end of this tutorial explains how to round.


Code:
New Round
Player Spawn
Round Start
Round End
I did several tests with plugin_end() and came to the conclusion that it does not work.
still do not know why.
__________________
rx1983 is offline
Send a message via MSN to rx1983
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 11-26-2011 , 16:34   Re: detecting map end
Reply With Quote #15

Quote:
Originally Posted by rx1983 View Post
I am looking for as Captaris end of the map and not the end of this tutorial explains how to round.


Code:
New Round
Player Spawn
Round Start
Round End
I did several tests with plugin_end() and came to the conclusion that it does not work.
still do not know why.
It might help if you spoke in english so we could understand what you are saying.
__________________
fysiks is offline
rx1983
Senior Member
Join Date: Jan 2009
Location: BRASIL
Old 01-09-2012 , 15:34   Re: detecting map end
Reply With Quote #16

xpaw answered my doubts, the other topic
Quote:
Originally Posted by xPaw View Post
plugin_end is to late to call something on clients i guess
can not be detected after the best player over the map ...
__________________

Last edited by rx1983; 01-09-2012 at 15:35.
rx1983 is offline
Send a message via MSN to rx1983
fLaXXiE.
Member
Join Date: Jan 2012
Old 01-10-2012 , 10:12   Re: detecting map end
Reply With Quote #17

You can use this method:

PHP Code:
#include < amxmodx >

public plugin_init( )
{
    
register_logevent("logevent_round_end"2"1=Round_End"// event of round end
}

public 
logevent_round_end( )
{
    
THE COMMAND YOU WANT HERE!

__________________
Currently working public plugins; Will be released, stop asking!
PM me for private work; i will look your message when i have time.

Public plugins by me:
Achievements ( 100% )
Jailbreak Glow Menu ( 100% )

Last edited by fLaXXiE.; 01-10-2012 at 10:17.
fLaXXiE. is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 01-10-2012 , 10:33   Re: detecting map end
Reply With Quote #18

You can store what you need at plugin_end() and then execute it at plugin_init() on next map.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
rx1983
Senior Member
Join Date: Jan 2009
Location: BRASIL
Old 01-10-2012 , 10:42   Re: detecting map end
Reply With Quote #19

Quote:
Originally Posted by Exolent[jNr] View Post
You can store what you need at plugin_end() and then execute it at plugin_init() on next map.
I'll think about it. anyway I still can not imagine it without a model.

I'm modifying the plugin writes the best player in a log file.
plugin_end put in () it can not store anything like xpaw said. it's too late for that.
would very much like the event map_end exist, as there is round_end.
because I want to write the best player in each map and not the best in each round.
__________________
rx1983 is offline
Send a message via MSN to rx1983
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 01-10-2012 , 11:16   Re: detecting map end
Reply With Quote #20

You could hook ScoreInfo event and save player info throughout the map.
Then on plugin_end() you can save it to a file and read it on plugin_init().
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] 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 07:15.


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