Raised This Month: $ Target: $400
 0% 

Problem with reload


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
NiteHawk
Junior Member
Join Date: Oct 2005
Old 10-15-2005 , 22:11   Problem with reload
Reply With Quote #1

I want a script to make it reload on startup. Some files that I have
require a restart to be activated.

I tried doing this, but it reloads over and over, a loop, even though I'd think it shouldn't.

Code:
#include <amxmodx>

new RELOAD_YES 0

public plugin_init() {
if ( RELOAD_YES == 0) {
server_cmd( "reload" )
RELOAD_YES = 1
}
}
NiteHawk is offline
 


Thread Tools
Display Modes

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 23:46.


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