Ban the worst player and map end
This is a bet system, if player type /zaklad-zaklad[index]=true for him. I want to ban the worst player who typed /zaklad or every player who has same frags count like the worst (fe. 4 players with frags: 30, 34, 20, 20. 2 players with frags 20 should be banned). Here is the code for banning but it won't work. What's wrong?
PHP Code:
PHP Code:
|
Re: Ban the worst player and map end
There is no reason to ban by IP since everybody should have a SteamID, BTW. Also, you probably need quotes around the SteamID.
|
Re: Ban the worst player and map end
PHP Code:
|
Re: Ban the worst player and map end
Ban code works fine, because i ban when play left game while bet too, so server_cmd works fine. Maybe something is wrong in loops? But it look fine too.
|
Re: Ban the worst player and map end
Did you try mine?
|
Re: Ban the worst player and map end
Look at posted time, you posted while I was posting. Will try and give you an anserw.
|
Re: Ban the worst player and map end
I added some logs.
If I comment: PHP Code:
|
Re: Ban the worst player and map end
Which version of Amxbans are you using?
|
Re: Ban the worst player and map end
AMXBans 5.0 YoMama/Lux & lan
|
Re: Ban the worst player and map end
Try:
Code:
player = players[i]So take a look into your logfile, if ban command is written right way. |
| All times are GMT -4. The time now is 00:48. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.