Raised This Month: $ Target: $400
 0% 

Why the hell won't this work?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
kotinha
Senior Member
Join Date: Jun 2009
Location: Alentejo, Portugal :)
Old 03-11-2011 , 19:37   Why the hell won't this work?
Reply With Quote #1

Okay, so, I'm getting frustrated with this because the plugin does nothing, but it is active -.-
Call me stupid, retarded, whatever you want but tell me how the hell will this work!
PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>

new PLUGIN[]="WAR MANAGER"
new AUTHOR[]="THONY"
new VERSION[]="1.00"

new playersready=0

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_event("TeamScore""team_score""a")
    
register_event("say .startwar""war_start""a")
    
register_event("say .ready""ready""a")
}
public 
war_start()
{
    
client_print(0,print_chat,"[WARMNG] War is starting..."
    if(
get_playersnum(0)!=10) {
        
server_cmd("say [WARMNG] Waiting for all players..."
    }
}

public 
ready() {
    
playersready++;
    if(
playersready==10)
    {
        
set_task(0.1"starting")
    }
}
public 
starting() {
    
server_cmd("say [WARMNG] All players are now ready, game is starting!..."
    
server_cmd("exec warcfg.cfg")
    new 
r
    
for(r=3;r<=1;r--)
    {
        
set_task(1"restart"r)
    }
}
public 
restart(id)
{
    
server_cmd("sv_restart 1")
    
server_cmd("say [WARMNG] Starting in %i"id)

__________________
"If God exists, I hope he has a good excuse." - Woody Allen
kotinha 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 14:35.


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