Raised This Month: $ Target: $400
 0% 

How to use "--"?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
biscuit628
Senior Member
Join Date: Jun 2007
Location: 香港HongKong
Old 02-18-2009 , 09:14   How to use "--"?
Reply With Quote #1

PHP Code:
#include <amxmodx>
#define Gamestarttime 20



public downtime(){
    
client_print(0print_center"%d Seconds Until Gamestart.."Gamestarttime)
    
Gamestarttime--
    if(
Gamestarttime<0)
        
restart_map()
    else
        
set_task(1.0"downtime")
    
    return 
PLUGIN_HANDLED
}


public 
restart_map() {    
    
set_hudmessage(01002000.050.6520.026.00.010.12)     
    
show_hudmessage(0,"Game will start after restart 3 times!")    
    
set_cvar_num("mp_friendlyfire",0)  
    
set_cvar_num("sv_maxspeed",0)   
    
server_cmd("amx_restart3times")
 
    return 
PLUGIN_HANDLED
   
}   


public 
plugin_init() {   
   
register_plugin("Auto-Restart","1.00","Test")   
   
register_event("TextMsg","downtime","a","2&#Game_C")  
   return 
PLUGIN_CONTINUE     

Cannot compile..
Please fix my code..
biscuit628 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 16:51.


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