[HELP] NickNames "con", "aux", etc... Craches my server :(
#1

Hello, friends...

I have a server 0.3e running on Windows and if any player(fucked player) connect with name "con", "aux", etc, crashes the server, crashes all online players and not is possible other player connect!

I've used several types of script, but do not work!
An example:

pawn Код:
public OnPlayerConnect(playerid)
{

    new plname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, plname, sizeof(plname));
    if(strcmp(plname,"con",true)==0)
    {
      Ban(playerid);
      if(IsPlayerConnected(playerid)) OnPlayerConnect(playerid);// I used it because even though the player quit the server it still shows up as connected! But it worked!
      return 1;
    }

}
If the player entered the name "Peter_Con" he is banished, but when you enter only "con" is not banned and the server crashes, as I said above!
I thought that no longer existed in SA: MP 0.3e!
I sent an email to staff samp, did not answer me!


I've tried everything, help me please! I beg!
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)