SA-MP Forums Archive
help abus bug! [+rep] - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: help abus bug! [+rep] (/showthread.php?tid=577086)



help abus bug! [+rep] - KingPersona - 08.06.2015

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 );
		}
    }



Re: help abus bug! [+rep] - KingPersona - 09.06.2015

bump!


Re: help abus bug! [+rep] - KingPersona - 10.06.2015

bump!