iiv03 Posted August 14, 2018 Posted August 14, 2018 I want a script when entering the player comes a welcome but he only sees it for each player and must be before the download is not yet loaded if he entered and I do not want him to beat the players who entered before they play Example : I entered the server and came to me welcome in the chat and download startup
iiv03 Posted August 14, 2018 Author Posted August 14, 2018 5 minutes ago, Mr.Loki said: OnPlayerJoin OutputChatBox IDK GIVE ME SCRIPT
iiv03 Posted August 14, 2018 Author Posted August 14, 2018 4 minutes ago, Mr.Loki said: its ez thank you
VenomOG Posted August 14, 2018 Posted August 14, 2018 addEventHandler("onPlayerLogin", player, function() outputChatBox("Welcome to the server",root,255,0,0,0) end) Try this @liwahadri
iiv03 Posted August 14, 2018 Author Posted August 14, 2018 Just now, KnucklesSAEG said: addEventHandler("onPlayerLogin", player, function() outputChatBox("Welcome to the server",root,255,0,0,0) end) Try this Okay
Mσнαмα∂ Hєℓιѕн Posted August 15, 2018 Posted August 15, 2018 3 hours ago, liwahadri said: Okay try this : function welcomeMessage(thePlayer) local name = getPlayerName(thePlayer) outputChatBox("#00ff00Welcome#ffffff ".. name .."#00ff00 To Server!",thePlayer,255,255,255,true) end addEventHandler("onPlayerJoin", getRootElement(),welcomeMessage)
N3xT Posted August 15, 2018 Posted August 15, 2018 55 minutes ago, Mσнαмα∂ Hєℓιѕн said: try this : function welcomeMessage(thePlayer) local name = getPlayerName(thePlayer) outputChatBox("#00ff00Welcome#ffffff ".. name .."#00ff00 To Server!",thePlayer,255,255,255,true) end addEventHandler("onPlayerJoin", getRootElement(),welcomeMessage) function welcomeMessage() local name = getPlayerName(source) outputChatBox("#00ff00Welcome#ffffff ".. name .."#00ff00 To Server!",source,255,255,255,true) end addEventHandler("onPlayerJoin", getRootElement(),welcomeMessage)
Mσнαмα∂ Hєℓιѕн Posted August 15, 2018 Posted August 15, 2018 17 hours ago, N3xT said: function welcomeMessage() local name = getPlayerName(source) outputChatBox("#00ff00Welcome#ffffff ".. name .."#00ff00 To Server!",source,255,255,255,true) end addEventHandler("onPlayerJoin", getRootElement(),welcomeMessage) wtf ?
N3xT Posted August 16, 2018 Posted August 16, 2018 8 hours ago, Mσнαмα∂ Hєℓιѕн said: wtf ? Your code is wrong, check the source of the event 'onPlayerJoin'.
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