Raised This Month: $ Target: $400
 0% 

Stop a function on round end


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 05-12-2009 , 07:52   Re: Stop a function on round end
Reply With Quote #5

Pff that's a big topic with too many versions and too much code... :}

Well, search for the function where you place the mine, add a check at start for that variable...
PHP Code:
public place_mine(id)
{
     if(
g_bRoundEnded)
     {
           
client_print(idprint_center"You can't place mines after the round has ended")
           return 
PLUGIN_HANDLED
     
}
 
     
//...

and add the other two roundstart/end functions... first search for them in the plugin and just add the vars there, if they are not there, copy them from my code easy...
__________________
Hunter-Digital is offline
 



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 01:37.


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