Leo Messi Posted December 31, 2016 Posted December 31, 2016 Hello, I am suggesting to add setSerialData/getSerialData. How it will work? Example function registerPlayer(player, cmd, account, password) local plrSerial = getPlayerSerial(player) setSerialData(plrSerial, "accountsRegistered", 1) triggerEvent("accounts.register", localPlayer, account) end addCommandHandler("register", registerPlayer) -- A function for test.. function accountRegister(player, account, password) if getSerialData(getPlayerSerial(player), "accountsRegistered") == 1 then outputChatBox("You already registered an account before!", player, 255, 0, 0) return end addAccount(getAccount(account), password) outputChatBox("You successfully registered an account in our server!", player, 0, 255, 0) end addEvent("accounts.register", true) addEventHandler("accounts.register", root, accountRegister) I hopefully this one gets added as it will be very useful/easier to all developers, Thank you for your time!
Simple0x47 Posted January 1, 2017 Posted January 1, 2017 It can be done by using tables, no need of pre-defined function. "Keep making it simplex."
xeon17 Posted January 1, 2017 Posted January 1, 2017 Take a look at getAccountsBySerial A unique GangWar gamemode waiting for you!Click here for more information.
Recommended Posts