Raised This Month: $ Target: $400
 0% 

[HELP] Plugin not works...


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
kramesa
Veteran Member
Join Date: Feb 2011
Location: Brazil
Old 10-03-2011 , 12:29   [HELP] Plugin not works...
Reply With Quote #1

Help-me with plugin

PHP Code:
#include <amxmodx>

#define MIN 8
#define TIME 10
#define TAG "[Pug MOD]"

public plugin_init()
{
register_plugin("Players Num",AMXX_VERSION_STR,"Capet1nha")
register_logevent("RoundStart",2,"1=Round_Start")
}

public 
RoundStart()
{
if(
get_cvar_num("pug_minplayers") != 10) return PLUGIN_HANDLED;

new 
TOTAL get_playersnum();
new 
WARMUP get_cvar_num("pug_warmup");

if(((
WARMUP == 0) || (WARMUP == 2)) && (TOTAL MIN))
{
set_cvar_num("pug_warmup",1);
set_cvar_num("pug_votemap",1);
set_cvar_num("pug_votemap_enabled",1);

client_print(0,3,"%s Reiniciando em %d segundos: Faltam %d jogadores.",TAG,TIME,(10 TOTAL));

message_begin(MSG_ALL,SVC_INTERMISSION);
message_end();

set_task(float(TIME),"svRestart");
return 
PLUGIN_HANDLED;
}
return 
PLUGIN_CONTINUE;
}

public 
svRestart() server_cmd("restart"); 
__________________

Last edited by kramesa; 10-04-2011 at 18:10.
kramesa 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 19:33.


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