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(PLUGIN, VERSION, AUTHOR)
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)
}
__________________