Unnamed
public text v1 · immutable#define bantag_amount 4
new bannedtags[][] = {
"[OmeN]", "[EkG]", "[HyR]", "[alr]"};
public OnPlayerConnect(playerid)
{
for (new t = 0; t < bantag_amount; t++)
{
new name[MAX_PLAYER_NAME];
new string[30];
GetPlayerName(playerid, name, sizeof(name));
new tags = strfind(name, bannedtags[0][t], true);
if (tags != -1)
{
new newname = strdel(name, 0, strlen(bannedtags[0][t]));
format(string, sizeof(string), "%s", newname);
SetPlayerName(playerid, string);
}
}
return 1;
}