Jump to content

output chatbox


Recommended Posts

i have just made a script that is meant to output a message when player types /police i think i have done wrong function can someone help fix this please?

function OutputChatbox() 
OutputChatbox (PlayerName "is now part of the police force!") 
end 
addCommandHandler ("police", OutputChatbox) 

Link to comment
  
function OutputChatbox(player) 
        outputChatBox ("#ff0000"..getPlayerName(player).." #000000is now part of the police force!",root,255,255,255,true) 
end 
addCommandHandler ("police",OutputChatbox) 
  

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