Jump to content

More blocked characters


Recommended Posts

Posted
addEvent("core:spawnPlayer", true)
addEventHandler("core:spawnPlayer", root, function()
    local pos=getElementData(source,"player:spawn")
    if not pos then return end
        fadeCamera(source, true)
        spawnPlayer(source, pos[1], pos[2], pos[3])
        setCameraTarget(source,source)
        toggleControl(source,"fire", true)
        toggleControl(source,"aim_weapon", true)
    local load=loadPlayerData(source)
    if load then 
      if string.find(getPlayerName(source), "=") then
          kickPlayer(source, "Znaki specialne typu !@#$%^ Są zabronione!")
      else
          exports.VCSMTA_NOTIFICATION:outputDx(source, "Witamy na Vice MTA 2.0! Życzymy miłej gry!", "success")
    end
    setElementData(source,'HS_accountName',getPlayerName(source));
    setElementData(source,"player:online",0)
    if getElementData(source,"player:premium") then 
        local queryA=string.format("SELECT * FROM pystories_users WHERE id=%d AND premiumdate>NOW() LIMIT 1", getElementData(source,"player:sid"))
        local resultA=exports["DB2"]:pobierzWyniki(queryA)
        if (resultA) then
        end
    end
    triggerClientEvent(source,"core:blipyaut",root,source)
    end
end)



Hello, how can I add more locked characters in nickname here than just =?

Posted

Let me try to give you the necessary portion of the page which is important to you.

OAig5WR.png

Can you understand reading this English portion of the page? I suggest you to start the "runcode" resource and typing

run string.find("abcd", "[bc][bc]")

in your server console. Lua patterns are really nice.

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...