Raised This Month: $ Target: $400
 0% 

Server Kill After map


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
mikey_trw
Junior Member
Join Date: Jul 2005
Old 08-30-2005 , 13:01   Server Kill After map
Reply With Quote #1

Hi, i want my server to kill itself after one map has been played,

I have written this code but it seems to cause some funny behavior and doesnt always work, Anyone know of any better way to kill the server?

Code:
public plugin_init() {     register_plugin("mapkill",VERSION,"Mike Wharton");      //set log event handling, wee need to hook round start and round finished, also frags   and deaths                                     } public plugin_end() {     kill_server(); } public kill_server() {     server_cmd("quit"); }

thanks,
Mikey_trw
p.s i tried with and without a server_exec(); after the quit command
mikey_trw is offline
Send a message via MSN to mikey_trw
 



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:31.


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