Raised This Month: $51 Target: $400
 12% 

Something help a single plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
botik
Junior Member
Join Date: Sep 2008
Old 01-07-2010 , 06:34   Something help a single plugin
Reply With Quote #1

I have advanced_steam_slot Pluin

Code:
#include <amxmodx>
#include <amxmisc>

#define PLUGIN "Advanced Steam slot"
#define VERSION "1.0"
#define AUTHOR "Alka"

new g_maxplayers

public plugin_init() {
    register_plugin(PLUGIN, VERSION, AUTHOR)
    
    g_maxplayers = get_maxplayers()
}

public client_authorized(id)
{
    if(!is_user_bot(id))
        return 0;
    
    new players = get_playersnum(1)
    new limit = g_maxplayers - get_cvar_num("amx_reservation")
    new uid[32]
    get_user_authid(id,uid,31)
    
    if(players > limit) 
    {
        if(equal(uid,"STEAM_ID_LAN"))
            player_kick() 
        
    }
    
    return PLUGIN_CONTINUE;
}

public player_kick()
{
    new players[32], inum, i, player
    get_players(players,inum)
    for(i = 0; i < inum; i++)
    {
        player = players[i]
        
        new uid[32]
        get_user_authid(player,uid,31)
        if( equal(uid,"STEAM_ID_LAN") || containi(uid,"STEAM_0:0") ) 
            return 1;
        
        new frags = get_user_flags(player)
        new deaths = get_user_deaths(player)
        if(frags < deaths)
            
        server_cmd("amx_kick #%i One player with Steam connected! Buy Steam for reserved slot!",get_user_userid(player))
    }
    return 0;
}
This plug the server in question permits the players at the start is SteamID "STEAM_0: 0" but there are also SteamID 'debut is "STEAM_0: 1", how to make in order to allow all players with steam.

sorry for my English knowledge

Thank.
botik is offline
SpILL
Veteran Member
Join Date: Oct 2009
Location: Karachi, Pakistan
Old 01-07-2010 , 06:39   Re: Something help a single plugin
Reply With Quote #2

PHP Code:
<Code Removed
__________________



Last edited by SpILL; 01-07-2010 at 11:06. Reason: Code Removed.
SpILL is offline
botik
Junior Member
Join Date: Sep 2008
Old 01-07-2010 , 06:50   Re: Something help a single plugin
Reply With Quote #3

Thank you I try.
botik is offline
botik
Junior Member
Join Date: Sep 2008
Old 01-07-2010 , 07:31   Re: Something help a single plugin
Reply With Quote #4

Hmmm don't work. Steam don't have slot.
botik is offline
Reply



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 22:37.


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