Raised This Month: $ Target: $400
 0% 

Reserve slot


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Sutar
Senior Member
Join Date: Sep 2010
Old 08-15-2012 , 09:53   Reserve slot
Reply With Quote #1

I have a server, it can be 17 players.
1st place for the administrator.
16 places for the players.

When the server has 15 players at the entrance of the sixteenth - is disabled and says that there is no space.
Although it should be disabled when the server is 16 people.

Here's the script:

Code:
public client_authorized(id)
{
	accessUser(id)
	
	if(!access(id, ADMIN_RESERVATION))
	{
		if(get_playersnum(1) >= (get_maxplayers() - g_aSlot))
		{
			server_cmd("kick #%d ^"There is no place.^"", get_user_userid(id))
			return PLUGIN_CONTINUE
		}
	}
	
	return PLUGIN_CONTINUE
}
What is wrong?
Sutar 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 05:41.


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