GerardWay Posted July 24, 2011 Share Posted July 24, 2011 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
bandi94 Posted July 24, 2011 Share Posted July 24, 2011 (edited) function OutputChatbox(thePlayer) outputChatBox (""..getPlayerName(thePlayer).."is now part of the police force!") end addCommandHandler ("police",OutputChatbox) Edited July 24, 2011 by Guest Link to comment
BinSlayer1 Posted July 24, 2011 Share Posted July 24, 2011 who's source? function OutputChatbox(player) outputChatBox (..getPlayerName(player).."is now part of the police force!") end addCommandHandler ("police",OutputChatbox) Link to comment
bandi94 Posted July 24, 2011 Share Posted July 24, 2011 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 ... Link to comment
GerardWay Posted July 24, 2011 Author Share Posted July 24, 2011 how would i make the players name red and the text black? Link to comment
Try Posted July 24, 2011 Share Posted July 24, 2011 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now