Raised This Month: $ Target: $400
 0% 

Problems with a selection detection


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
FlyingMongoose
Veteran Member
Join Date: Mar 2004
Old 06-15-2004 , 20:15   Problems with a selection detection
Reply With Quote #1

Code:
#include <amxmodx> public client_putinserver(id) {     new team[32]     get_user_team(id,team,31)     if(get_user_flags(id)&ADMIN_IMMUNITY)     {         return PLUGIN_CONTINUE     }     if(team[0]!='U')     {         client_cmd(id,"menuselect 10")         return PLUGIN_CONTINUE     }else{         client_cmd(id,"menuselect 5")         return PLUGIN_CONTINUE     }     return PLUGIN_CONTINUE  } public check_time(id) {     new plist[32],pnum     get_players(plist, pnum ,"a")     for(new i=0; i<pnum; i++)     {         if(get_user_flags(plist[i]&ADMIN_IMMUNITY))         {             return PLUGIN_CONTINUE         }         if(is_user_alive(plist[i])!=1)         {             server_cmd("kick #%d ^"You failed to select a skin in time^"",plist[i])         }         return PLUGIN_CONTINUE     }     return PLUGIN_CONTINUE } public plugin_init(){     register_plugin("Automatic Team Assign","0.2.2","[SMS]FlyingMongoose")     register_event("ShowMenu","client_putinserver","b","4&Team_Select")     register_event("VGUIMenu","client_putinserver","b","1=2","1=26","1=27")     register_logevent("check_time",2,"0=World triggered","1=Round_Start")     return PLUGIN_CONTINUE }
the problem is that it enters check_time, it just doesn't do anything
__________________
Please do NOT PM for support.

Only ask for support in plugin threads.

TunedChaos.com - Precision Tuned Game Servers
FlyingMongoose 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 14:40.


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