Raised This Month: $ Target: $400
 0% 

Reserve slot


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Sutar
Senior Member
Join Date: Sep 2010
Old 08-16-2012 , 03:03   Re: Reserve slot
Reply With Quote #9

That is, the code will be then?

Code:
#include <amxmodx>
#include <amxmisc>
 
new g_aSlot = 1
 
public plugin_init()
{
    register_plugin("AmxBans Admin Base", "2.5", "Sutar")
}
 
public client_authorized(id)
{
        if(!access(id, ADMIN_RESERVATION) && get_playersnum() >= (get_maxplayers() - g_aSlot))
                server_cmd("kick #%d", get_user_userid(id))
}
as said striker07, get_playersnum() - Not the player who enters. That's what I need?

Last edited by Sutar; 08-16-2012 at 03:05.
Sutar 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 05:41.


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