AddEventHandler('chatMessage', function(source, name, message)
if message == '--RACIST LANGUAGE HERE--' then
DropPlayer(source, 'Language is uncalled for.')
CancelEvent()
end
end)
Im trying to make a script to where it auto drops a player once any kind of derogatory remarks are used.
However, I’m not sure if there is a way I can wildcard a specfic word. Is there a more efficient way to implement something like this? Or maybe make a warning system that triggers event #1 that calls for a chat message, and event #2 that kicks/bans?