Jump to content

Join quit whit Hex codes


Carlossg

Recommended Posts

This is my script:

addEventHandler('onClientPlayerJoin', root, 
    function() 
        outputChatBox('* ' .. getPlayerName(source) .. ' has joined the game', 255, 100, 100) 
    end 
) 
  
addEventHandler('onClientPlayerChangeNick', root, 
    function(oldNick, newNick) 
        outputChatBox('* ' .. oldNick .. ' is now known as ' .. newNick, 255, 100, 100) 
    end 
) 
  
addEventHandler('onClientPlayerQuit', root, 
    function(reason) 
        outputChatBox('* ' .. getPlayerName(source) .. ' has left the game [' .. reason .. ']', 255, 100, 100) 
    end 
) 

I find it on resources/[gameplay]/joinquit.zip

Link to comment
addEventHandler('onClientPlayerJoin', root, 
    function() 
        outputChatBox('* ' .. getPlayerName(source):gsub("#%x%x%x%x%x%x","") .. ' has joined the game', 255, 100, 100) 
    end 
) 
  
addEventHandler('onClientPlayerChangeNick', root, 
    function(oldNick, newNick) 
        outputChatBox('* ' .. oldNick:gsub("#%x%x%x%x%x%x","") .. ' is now known as ' .. newNick:gsub("#%x%x%x%x%x%x",""), 255, 100, 100) 
    end 
) 
  
addEventHandler('onClientPlayerQuit', root, 
    function(reason) 
        outputChatBox('* ' .. getPlayerName(source):gsub("#%x%x%x%x%x%x","") .. ' has left the game [' .. reason .. ']', 255, 100, 100) 
    end 
) 

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