AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [Help] a Ban plugin (https://forums.alliedmods.net/showthread.php?t=317385)

Mikaeel123 07-10-2019 11:30

[Help] a Ban plugin
 
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 ??

Fuck For Fun 07-10-2019 11:58

Re: [Help] a Ban plugin
 
Quote:

What the fuck did I see here now?

Mikaeel123 07-10-2019 12:16

Re: [Help] a Ban plugin
 
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

Mordekay 07-10-2019 12:28

Re: [Help] a Ban plugin
 
Make your server STEAM only and i'm 99.9% sure they can not join your server anymor.
Problem solved :wink:

Mikaeel123 07-10-2019 13:52

Re: [Help] a Ban plugin
 
Its steam server :| im not use non steam !

<VeCo> 07-10-2019 14:04

Re: [Help] a Ban plugin
 
Recompile all your plugins from .sma
You might have a backdoor if you installed some random .amxx

BesTKiLLeR 07-10-2019 14:28

Re: [Help] a Ban plugin
 
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?

OciXCrom 07-10-2019 15:17

Re: [Help] a Ban plugin
 
Haven't you heard of permanent bans?

Natsheh 07-10-2019 15:41

Re: [Help] a Ban plugin
 
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

Mikaeel123 07-11-2019 03:07

Re: [Help] a Ban plugin
 
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


All times are GMT -4. The time now is 04:28.

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