Pickanothername Posted January 20, 2022 Share Posted January 20, 2022 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 =? Link to comment
The_GTA Posted January 20, 2022 Share Posted January 20, 2022 Hello, please take a look at the Lua Patterns tutorial page. There you can learn how to match a character-class, a set of distinct characters that you want. You can also find ways to detect a repetition of your characters. Link to comment
Pickanothername Posted January 20, 2022 Author Share Posted January 20, 2022 I don't really understand, can you help me, how do I add more characters to the lock? Link to comment
The_GTA Posted January 20, 2022 Share Posted January 20, 2022 Let me try to give you the necessary portion of the page which is important to you. 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. Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now