iiv03 Posted August 14, 2018 Share 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 Link to comment
Mr.Loki Posted August 14, 2018 Share Posted August 14, 2018 OnPlayerJoin OutputChatBox Link to comment
iiv03 Posted August 14, 2018 Author Share Posted August 14, 2018 5 minutes ago, Mr.Loki said: OnPlayerJoin OutputChatBox IDK GIVE ME SCRIPT Link to comment
iiv03 Posted August 14, 2018 Author Share Posted August 14, 2018 4 minutes ago, Mr.Loki said: its ez thank you Link to comment
VenomOG Posted August 14, 2018 Share Posted August 14, 2018 addEventHandler("onPlayerLogin", player, function() outputChatBox("Welcome to the server",root,255,0,0,0) end) Try this @liwahadri Link to comment
iiv03 Posted August 14, 2018 Author Share 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 Link to comment
Mσнαмα∂ Hєℓιѕн Posted August 15, 2018 Share 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) Link to comment
N3xT Posted August 15, 2018 Share 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) Link to comment
Mσнαмα∂ Hєℓιѕн Posted August 15, 2018 Share 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 ? Link to comment
N3xT Posted August 16, 2018 Share Posted August 16, 2018 8 hours ago, Mσнαмα∂ Hєℓιѕн said: wtf ? Your code is wrong, check the source of the event 'onPlayerJoin'. 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