Raised This Month: $ Target: $400
 0% 

[Help] Connection


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
LostSkill
Senior Member
Join Date: Jun 2008
Location: Monuhuelo Island
Old 05-24-2009 , 06:42   [Help] Connection
Reply With Quote #1

Well i try do redirect plugin but somethink wrong can somebody check it?

PHP Code:
#include <amxmodx>

public plugin_init() {
    
    
register_plugin("redirect","1.0","LostSkill")
    
    
register_cvar("amx_maxplayers","0")
    
}

public 
client_connect(id){
    
    new 
maxplayers get_cvar_num("amx_maxplayers")    
    
    if ( 
get_playersnum() >= maxplayers) {
        
        if(
get_user_flags(id) & ADMIN_RESERVATION)
        {
            return 
1;
        }
        
        else if ( 
get_playersnum() >= maxplayers)
        {
            
client_cmd(id,"connect 123.123.123.123:27015")
        }
    }
    return 
0;

__________________
MY ENGLISH IS BAD.....
LostSkill is offline
Send a message via MSN to LostSkill
 



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 01:28.


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