20.11.2016, 03:55
It's easy to make anti advertisement on public chat but how does one make it so that when you type an IP by /pm, it'll automatically kicks/bans the player. This is what i got ;/
Quote:
public OnPlayerText(playerid, text[]) if(strfind(text, "", true) != -1) { SendClientMessage(playerid, COLOR_WHITE, "{FFDC2E}[Advertisement] {FFFFFF} Anti advertisement detected."); Ban(playerid); Kick(playerid); return 0; } |