help abus bug! [+rep]
#1

Hello


i have problem, my players is abus this bug, i have system Clan, and player when he make Name TAG of clan Ex: [AS]Klacaz, and original name, : is Klacaz , and he can enter again in server in one account , and he transfer herself money


Ex: name Original :Klacaz and when he make name TAG, he can change it in [AS]Klacaz or Klacaz[AS] ..

i have maked this onplayerconnect, mm not work
Код:
    foreach(new i : Player) 
	{
        if ( i == playerid ) continue;
        new name_new [ 24 ];
        format ( name_new, 24, "%s", GetName ( playerid ) );
        new i_new [ 24 ];
        format ( i_new, 24, "%s", GetName ( i ) );

        strreplace(name_new, "[", "\\[");
		strreplace(name_new, "]", "\\]");
        strreplace(name_new, "(", "\\(");
		strreplace(name_new, ")", "\\)");
		strreplace(name_new, ".", "\\.");

        strreplace(i_new, "[", "\\[");
		strreplace(i_new, "]", "\\]");
        strreplace(i_new, "(", "\\(");
		strreplace(i_new, ")", "\\)");
		strreplace(i_new, ".", "\\.");

        if ( regex_search ( i_new, name_new ) )
		{
			SCM(playerid, ALB, "{ee5555} ** This account is already connected, you are Kicked.");
			KickEx ( playerid );
		}
    }
Reply


Messages In This Thread
help abus bug! [+rep] - by KingPersona - 08.06.2015, 22:35
Re: help abus bug! [+rep] - by KingPersona - 09.06.2015, 20:08
Re: help abus bug! [+rep] - by KingPersona - 10.06.2015, 10:41

Forum Jump:


Users browsing this thread: 1 Guest(s)