Jump to content

Join quit whit Hex codes


Carlossg

Recommended Posts

Posted

OK Now I have a server and when a player join whit hex codes see Pla#00ff00yer has entered the game and I want to remove #00ff00 to Player has entered the game

Thx.

Posted

Post your join quit script.

P.S: This should go in the Scripting section.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

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

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

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

You're welcome.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

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