Jump to content

outputChatBox when player enter the server


iiv03

Recommended Posts

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
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...