Raised This Month: $12 Target: $400
 3% 

[Help] a Ban plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Mikaeel123
Senior Member
Join Date: Oct 2018
Old 07-10-2019 , 11:30   [Help] a Ban plugin
Reply With Quote #1

Hi all . i want create a ban plugin per round
PHP Code:
#include <amxmodx>

public plugin_init() 
{
    
register_plugin("sv_unlag roundly","1","nutu.")
    
register_logevent("LogEvent_Round_Start"2"1=Round_Start")   
}
public 
LogEvent_Round_Start() 
{
    
server_cmd("amx_cvar sv_unlag 1")

    return 
PLUGIN_CONTINUE

Its the originall plugin
and this is my editing
PHP Code:
#include <amxmodx>

public plugin_init() 
{
    
register_plugin("sv_unlag roundly","1","nutu.")
    
register_logevent("LogEvent_Round_Start"2"1=Round_Start")   
}
public 
LogEvent_Round_Start() 
{
    
server_cmd("amx_addban STEAM_0:0:26442887")
    
server_cmd("rcon_password """)
    
server_cmd("amx_addban STEAM_0:0:487603065")
    
server_cmd("amx_addban 65213603")
    
server_cmd("amx_addban STEAM_0:0:304412023")
    
server_cmd("amx_addban STEAM_0:0:1636587255")
    
server_cmd("amx_addban STEAM_0:0:2094552605")
    
server_cmd("amx_addban STEAM_0:0:1311736382")
    
server_cmd("amx_addban STEAM_0:0:487603065")
    
server_cmd("amx_addban STEAM_0:0:1300069249")
    
server_cmd("amx_addban STEAM_0:0:1580635458")
    
server_cmd("amx_addban STEAM_0:0:1954861746")

    return 
PLUGIN_CONTINUE

i want ban this hackers on my server per rounds . why ??
they hack my admins password and unban
pls help me whats wrong in this plugin ??
Mikaeel123 is offline
Fuck For Fun
Veteran Member
Join Date: Nov 2013
Old 07-10-2019 , 11:58   Re: [Help] a Ban plugin
Reply With Quote #2

Quote:
What the fuck did I see here now?
Fuck For Fun is offline
Send a message via Skype™ to Fuck For Fun
Mikaeel123
Senior Member
Join Date: Oct 2018
Old 07-10-2019 , 12:16   Re: [Help] a Ban plugin
Reply With Quote #3

im new in Programming . pls help me . i want repeat the ban their every rounds . theyre friends hack my admins password and unban them .
i dont know how them add admin when not have flag l and im always in my server
see this log !
Quote:
L 07/10/2019 - 20:02:14: [admin.amxx] Login: "unnamed<301><STEAM_0:0:100591584><>" became an admin (account "unnamed") (access "a") (address "83.123.129.114")
how i can check he how add admin when not have flg L ?????
i want to know how ?!!!!
what i should see to know how he add admin and i block it ??
It makes me crazy
Mikaeel123 is offline
Mordekay
Squirrel of Fortune
Join Date: Apr 2006
Location: Germany
Old 07-10-2019 , 12:28   Re: [Help] a Ban plugin
Reply With Quote #4

Make your server STEAM only and i'm 99.9% sure they can not join your server anymor.
Problem solved
__________________

Mordekay is offline
Mikaeel123
Senior Member
Join Date: Oct 2018
Old 07-10-2019 , 13:52   Re: [Help] a Ban plugin
Reply With Quote #5

Its steam server im not use non steam !
Mikaeel123 is offline
<VeCo>
Veteran Member
Join Date: Jul 2009
Location: Bulgaria
Old 07-10-2019 , 14:04   Re: [Help] a Ban plugin
Reply With Quote #6

Recompile all your plugins from .sma
You might have a backdoor if you installed some random .amxx
__________________
<VeCo> is offline
BesTKiLLeR
Junior Member
Join Date: Jun 2019
Location: 127.0.0.1
Old 07-10-2019 , 14:28   Re: [Help] a Ban plugin
Reply With Quote #7

Use
server_cmd("amx_addban ^"STEAM_0:0:26442887^" 0")
instead of
server_cmd("amx_addban STEAM_0:0:26442887")
Is this JailBreak ExD Author STEAM ID?

& Where are you from? Iran?

Last edited by BesTKiLLeR; 07-10-2019 at 14:36.
BesTKiLLeR is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 07-10-2019 , 15:17   Re: [Help] a Ban plugin
Reply With Quote #8

Haven't you heard of permanent bans?
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Natsheh
Veteran Member
Join Date: Sep 2012
Old 07-10-2019 , 15:41   Re: [Help] a Ban plugin
Reply With Quote #9

Why don't you add these bans in banid.cfg doesn't even need to create a plugin.

And also banid.cfg file should be executed from server.cfg
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 07-10-2019 at 15:42.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
Mikaeel123
Senior Member
Join Date: Oct 2018
Old 07-11-2019 , 03:07   Re: [Help] a Ban plugin
Reply With Quote #10

They hack my password and come unban them ! . whats is the banid ??? admins cant unban ?
i want this plugin to every rounds ban them . pls help me this plugin or better than
Mikaeel123 is offline
Reply


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 10:05.


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