08.06.2015, 22:35
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
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 );
}
}

