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
#2

bump!
Reply
#3

bump!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)