Ban and BanEx problem
#1

Hello, I have a big problem and I really don't know how to solve it.


So, when I use Ban or BanEx my server get restarted. I can't find a reason for it, someone told me that maybe it's because of my "/ban" command, I made another one only with Ban(Playerid) and it still crashing it.

I removed all my includes, plugins, everything and the server it stills crashing. My samp.ban permissions are okay, any idea ? I


Thanks in advance.


PD: I just tested it with a blank GameMode and 0.3c R2 (downloaded right now), only with a NPC and that command and it still crashing.
Reply
#2

Show us the command
Reply
#3

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/banex", cmdtext, true, 10) == 0)
    {
        BanEx(playerid, "Banned");
    }
    return 0;
}
This is on the blank gamemode, without FilterScript, Plugins, Includes...etc The server gets GMX'ed because the players can see "This server is restarting..".
Reply
#4

їAre you sure that is a black gamemode?
Reply
#5

http://pastebin.com/Et7yJuFt

Check it, I connected a NPC to test the command with him, but this happens on my public server too If I ban a hacker the other 30 players get GMX'ed.

Note: There is BanEx(0, "Banned"); because the 0 is the NPC ID so I ban him to test if I get gmx'ed or not
Reply
#6

Any idea? bump..
Reply
#7

That is really unusual. Try running it on a completely different server?
Reply
#8

Quote:
Originally Posted by usrb1n
Посмотреть сообщение
http://pastebin.com/Et7yJuFt

Check it, I connected a NPC to test the command with him, but this happens on my public server too If I ban a hacker the other 30 players get GMX'ed.

Note: There is BanEx(0, "Banned"); because the 0 is the NPC ID so I ban him to test if I get gmx'ed or not
Well if you're banning an NPC, then aren't you banning 127.0.0.1? So anyone else on that IP address, aka all of your bots and probably yourself will get banned? Therefore leading to you and your bots being "GMX'd", not sure how that happens in your public server though unless everyone somehow has the same IP address. Although I suspect banning 127.0.0.1 in any case is just going to cause problems, since you're denying connections from the hosting machine.
Reply
#9

Quote:
Originally Posted by usrb1n
Посмотреть сообщение
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/banex", cmdtext, true, 10) == 0)
    {
        BanEx(playerid, "Banned");
    }
    return 0;
}
This is on the blank gamemode, without FilterScript, Plugins, Includes...etc The server gets GMX'ed because the players can see "This server is restarting..".
This script would ban the player who uses the command "/banex".
Reply
#10

Quote:
Originally Posted by Cactus2010
Посмотреть сообщение
This script would ban the player who uses the command "/banex".
Yes because it's a test command, and this command bans a player and GMX all the server
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)