Jump to content

output chatbox


Recommended Posts

Posted

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) 

560x95_FFFFFF_FF9900_000000_000000.png
Posted (edited)
function OutputChatbox(thePlayer) 
outputChatBox (""..getPlayerName(thePlayer).."is now part of the police force!") 
end 
addCommandHandler ("police",OutputChatbox) 

Edited by Guest

Ingame Name : |DGT|Puma

DGT Clan Server 24/7 Owner/Scripter

MultiGameMode in progress :

n-560x95_FFFFFF_FFFFFF_0283C4_000000.png

Posted

who's source?

    function OutputChatbox(player) 
    outputChatBox (..getPlayerName(player).."is now part of the police force!") 
    end 
    addCommandHandler ("police",OutputChatbox) 

Posted

check my code i edited it now is workin ...

BinSlayer1 if you copy past a code then see if your edited code is working or not ...

Ingame Name : |DGT|Puma

DGT Clan Server 24/7 Owner/Scripter

MultiGameMode in progress :

n-560x95_FFFFFF_FFFFFF_0283C4_000000.png

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

;)

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