IP Block

:: Description ::



This plugin block the entry in the server of players with same IP.



When a player join in the server, this plugin verify if exist others players with her IP and count the number of players with same IP. If the max amount is exceeded, the player is kicked of server.



Too is possible to config exceptions for some IPs.





:: CVARS ::



Config file created automatically: cfg/sourcemod/sm_ipblock.cfg



// Enables/Disables the plugin. [0 = Disabled, 1 = Enabled]

// -

// Default: "1"

// Minimum: "0.000000"

// Maximum: "1.000000"

sm_ipblock_enable "1"



// MAX amount of players with the same ip

// -

// Default: "1"

// Minimum: "1.000000"

sm_ipblock_maxip "1"





:: Commands ::



- Adds an IP to the exceptions list

sm_ipblock_exception_add <ip> <maxClient>





Example:

IP: 201.102.203.204

Max Clients: 3

sm_ipblock_exception_add 201.102.203.204 3



- Removes an IP from the exceptions list

sm_ipblock_exception_del <ip>



- Displays exceptions list

sm_ipblock_exception_list





:: Languages ::



Languages included in the file ipblock.phrases.txt:



-Português-BR (PT)

-English (EN)



To translate the messages into your language, simply add them to file "addons/SourceMod/translations/ipblock.phrases.txt".





:: Change log ::



>> 1.0.0 - 05-22-2012

- Release of the plugin





:: Installation ::



- Copy the file "sm_ipblock.smx" to the folder "addons/SourceMod/plugins/"

- Copy the file "ipblock.phrases.txt" to the folder "addons/SourceMod/translations/"

- Run the command: sm plugins load sm_ipblock

or restart the server





:: Upgrading ::



- Run the command: sm plugins unload sm_ipblock

- Delete the file: "cfg/sourcemod/sm_ipblock.cfg"



- Copy the new file "sm_ipblock.smx" to the folder "addons/SourceMod/plugins/"

- Copy the new file "ipblock.phrases.txt" to the folder "addons/SourceMod/translations/"

- Run the command: sm plugins load sm_ipblock

or restart the server





:: Downloads ::















Attached Files











File Type: sp


Get Plugin or
Get Source (sm_ipblock.sp - 6.0 KB)


File Type: txt


ipblock.phrases.txt (905 Bytes)


File Type: zip


ipblock1.0.0.zip (9.3 KB)








Orignal From: IP Block

No comments

Not a single link is allowed to submit in comment :o