Jump to content
  • 0

illegal advertising


Zeus

Question

Hello mta players i was playing MM server but when i online i always saw a player like this

Server:www.mtasa.tk_[number]

they advertising so much, its not just one player, its many. I cant take it anymore, can you remove it as illegal advertisement on other server?

i was so angry about it. ( they use it for play, but that name for advertising )

PS: After that name banned, the same first name ( http://www.mtasa.tk ) come to the server again with the deferent number.. i hate that -.-

Link to comment

5 answers to this question

Recommended Posts

  • 0
  • Discord Moderators

Why don't you just create a script to filter out mtasa.tk names? You're the server owner, you decide what goes in and out.

addEventHandler ("onPlayerJoin", getRootElement(), function()
local name = getPlayerName ( source )
local stringStart, stringEnd, tld = string.find(name, "mtasa.tk")
if stringStart then
nameStr = string.sub(name, stringStart, stringEnd)
if nameStr == "mtasa.tk" then
local player = source
changeName(player)
end
end
end
)
 
 
function changeName(player)
setPlayerName (player, "MTAPlayer_"..math.random(0,1000))
end

you can add more disallowed names if you want.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...