Jump to content

Random messages when the player exits the game


zudokuxD

Recommended Posts

messages = { 
"Lo regaño su mamá" 
"Se enojo" 
"Fue a ver a la abuela" 
"Se fue a dormir" 
"Adios Amor" 
} 
  
function QuitMessage( reason ) 
    outputChatBox ( getPlayerName ( source )..messages[math.random(1,#messages)]  ("..reason..") 
end 
addEventHandler( "onClientPlayerQuit", getRootElement(), QuitMessage ) 

Link to comment

I'm not really sure what you need but I think that this will help you:

outputChatBox ( getPlayerName ( source ).."#ffffff: "..messages[math.random(1,#messages)]" ("..reason..")") 

And why do you need this in client-side ? This will show up when the player quits so probably he won't see the message.

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