birchy this is a much easier way to do it, but by integrating the script into the panel you will have information on who was kicked, when and why.

LeonFull
Posts
-
[Release][MP] Slots limiter by class -
[Release][MP] Slots limiter by classGuys i created a script that kicks players who use more slots per class than the one determined by cfg. As I searched in various places and I found nothing about it, I decided to post it here. Below is the instructions on how to install on your server.
Call the
player thread maxalloc_block ();
in the onplayerconnect function.onplayerconnect() { for ( ;; ) { level waittill( "connecting", player ); player.clientid = level.clientid; level.clientid++; player thread onplayerspawned(); player thread maxalloc_block(); } }
place the following function anywhere in your script
maxalloc_block() { self endon("disconnect"); level endon("game_ended"); self waittill( "spawned_player" ); level.maxAllocation = getDvarInt("maxAlloc_value"); if(level.maxAlloc_value == " ") SetDvar("maxAlloc_value", 10); level.maxAlloc_enable = getDvarInt("maxAlloc_enable"); if(level.maxAlloc_enable == " ") SetDvar("maxAlloc_enable", 1); for (class = 0; class < 10; class++) { if (self getLoadoutAllocation(class) > level.maxAllocation && level.maxAlloc_enable == 1) { logprint( "ScriptMaxAlloc;" + self getguid() + "\n"); break; } } }
Extract and copy the following file to the iw4mAdmin folder
Set this lines on your cfg file:
set maxAlloc_enable 1 // 1 Enable | 0 Disable - Default 1 set maxAlloc_value 10 // Max value of slots per classe - Default 10
Compiled script file:
https://github.com/viniciusmdev/Slots-limiter-by-class/releases/download/1.1/_clientids.gscSource code:
https://github.com/viniciusmdev/Slots-limiter-by-class/blob/main/_clientids_not_compiled.gscI used the Generic Log Parser plugin to communicate the gsc script with the iw4madmin panel, follow the link
https://forum.awog.at/topic/171/release-generic-log-parser
Here is a video of the script working.
-
new launcher don't work in windows server 2016Infamous That and DirectX are installed. My servers are running on my old vps, but I can't update because the launcher won't open in Windows Server 2016.
-
new launcher don't work in windows server 2016I'm trying to update my servers on my windows server 2016 vps, but the launcher won't open. On my windows 10 the launcher works perfectly. I tried to reinstall one server on a new Windows Server 2016 vps, but the plutonium files were not created in the appdata. So the support for windows server 2016 is over?