Reserve slot
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) |
Re: Reserve slot
show the entire plugin and not just a part
|
Re: Reserve slot
I wrote this piece in end admin.amxx...
The plugin will be: Code:
#include <amxmodx>Code:
get_playersnum(1)Code:
get_playersnum() |
Re: Reserve slot
PHP Code:
Quote:
get_playersnum() not |
Re: Reserve slot
Quote:
|
Re: Reserve slot
return PLUGIN_IGNORED?
does he even need the returns? |
Re: Reserve slot
Quote:
2. No, since return values are ignored, there is no point to return here. |
Re: Reserve slot
ah ok thx :)
|
Re: Reserve slot
That is, the code will be then?
Code:
#include <amxmodx> |
Re: Reserve slot
Quote:
let me change the natives with proper numbers if(16 >= (17 - 1)) thats why it wont let the 16th player connect :wink: |
| All times are GMT -4. The time now is 05:41. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.