Ban and BanEx problem -
usrb1n - 22.04.2011
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.
Re: Ban and BanEx problem -
Jay_ - 22.04.2011
Show us the command
Respuesta: Ban and BanEx problem -
usrb1n - 22.04.2011
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..".
Respuesta: Ban and BanEx problem -
SuperMarioRol - 22.04.2011
їAre you sure that is a black gamemode?
Respuesta: Ban and BanEx problem -
usrb1n - 22.04.2011
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
Respuesta: Ban and BanEx problem -
usrb1n - 23.04.2011
Any idea? bump..
Re: Ban and BanEx problem -
Ash. - 23.04.2011
That is really unusual. Try running it on a completely different server?
Re: Respuesta: Ban and BanEx problem -
JaTochNietDan - 23.04.2011
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.
Re: Respuesta: Ban and BanEx problem -
Cactus2010 - 23.04.2011
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".
Respuesta: Re: Respuesta: Ban and BanEx problem -
usrb1n - 23.04.2011
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