toptional Posted April 9, 2013 Posted April 9, 2013 Hi guys, Is there an event client or server that triggers something the first time someone joins the server? I was thinking onPlayerRegister but i don't think it exists? Is there something i could use ?
PaiN^ Posted April 9, 2013 Posted April 9, 2013 You can use setElementData or getPlayerSerial with onPlayerJoin .. " Keep Thinking Different . " - Steve Jops -------------------- Don't send me PMs asking for help, I Won't reply !
Max+ Posted April 9, 2013 Posted April 9, 2013 onPlayerJoin or - onPlayerLogin , - New , Kill System - New, GameMode Intro - Leve / Exp System - New nametag showing style - New , Hud For Players - Skin Selection from SA-MP - Money System / Buy Weapons - Drop Weapons - New, Flood System - New , Group Assign - Gun license For Weapons - Random Rule System For Money
xXMADEXx Posted April 9, 2013 Posted April 9, 2013 Here are some good events: - Server side: onPlayerLogin onPlayerJoin - Client onClientResourceStart The Ultimate Lua Tutorial! | MTA PHP SDK
TAPL Posted April 10, 2013 Posted April 10, 2013 Hi guys,Is there an event client or server that triggers something the first time someone joins the server? I was thinking onPlayerRegister but i don't think it exists? Is there something i could use ? -- Server Side !!! addEventHandler("onPlayerLogin", root, function(_, account) if not getAccountData(account, "FirstTime") then outputChatBox("You're playing for the first time!", source, 0, 255, 0) setAccountData(account, "FirstTime", true) else outputChatBox("This is not the first time for you!", source, 255, 0, 0) end end) 1
toptional Posted April 10, 2013 Author Posted April 10, 2013 Thanks TAPL! (This is my 500th post! Party )
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