Raised This Month: $ Target: $400
 0% 

on map change or round end


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
whosyourdaddy
Senior Member
Join Date: Apr 2008
Old 10-25-2008 , 21:57   on map change or round end
Reply With Quote #1

how do i log an event on map change or when the round ends? like lets say 20 seconds before the map changes i want it to do something

can you please provide me with the

Code:
public WHAT GOES HERE {}

Last edited by whosyourdaddy; 10-25-2008 at 22:01.
whosyourdaddy is offline
Sn!ff3r
Veteran Member
Join Date: Aug 2007
Location: Poland
Old 10-25-2008 , 22:11   Re: on map change or round end
Reply With Quote #2

http://www.amxmodx.org/funcwiki.php?...Task&go=search

set_task with "d" flag.
Sn!ff3r is offline
Send a message via Skype™ to Sn!ff3r
whosyourdaddy
Senior Member
Join Date: Apr 2008
Old 10-25-2008 , 22:18   Re: on map change or round end
Reply With Quote #3

ya that just confused me isnt there like a register_logevent thing i can do?

Last edited by whosyourdaddy; 10-25-2008 at 22:23.
whosyourdaddy is offline
scrtxxcaz
Senior Member
Join Date: Feb 2007
Location: a place u cant find
Old 10-26-2008 , 02:16   Re: on map change or round end
Reply With Quote #4

If you want to do a task on map change.
PHP Code:
public plugin_end() {
    
//do something

If you want to do a task on round end
PHP Code:
public plugin_int() {
      
register_logevent("Round_End",2,"1=Round_End")
}
public 
Round_End() {
     
//do something

Or do what Sn!ffer said and use set task if you want a task to be done 20 seconds before map change..
PHP Code:
new args[32]
set_task(20.0,"Your Function",id,args,31,"d"
__________________
Please leave your name when giving me any karma

Counter Strike Freeze Tag
Status: Testing.... (bugs)

Revised Registration
Status: In Progress
scrtxxcaz is offline
Send a message via AIM to scrtxxcaz
Old 10-26-2008, 02:27
whosyourdaddy
This message has been deleted by whosyourdaddy.
atomen
Veteran Member
Join Date: Oct 2006
Location: Stockholm, Sweden
Old 10-26-2008 , 07:23   Re: on map change or round end
Reply With Quote #5

This is the best way since it's called earlier than plugin_end() if you are going to save a lot of data.
PHP Code:
register_event("30""event_intermission",    "a"); 
__________________
atomen is offline
Send a message via MSN to atomen
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 10-26-2008 , 13:23   Re: on map change or round end
Reply With Quote #6

FM_ServerDeactivate
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
atomen
Veteran Member
Join Date: Oct 2006
Location: Stockholm, Sweden
Old 10-26-2008 , 13:33   Re: on map change or round end
Reply With Quote #7

Quote:
Originally Posted by Exolent[jNr] View Post
FM_ServerDeactivate
It's the same as plugin_end()
__________________
atomen is offline
Send a message via MSN to atomen
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 12:01.


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