Tete omar Posted May 19, 2012 Share Posted May 19, 2012 When the player type command outputchatbox show up function playrules(thePlayer, command) outputChatBox("#FFFB0ENo cheat No spam No disrespect ", thePlayer,255,255,255,true) end addCommandHandler("rules", playrules) I tried but i failed Link to comment
X-SHADOW Posted May 19, 2012 Share Posted May 19, 2012 (edited) Here dont forget to edit to your text function showhelp(thePlayer) outputChatBox("/pm, send a personal message",thePlayer,255,0,0) outputChatBox("/stations,set radio steams",thePlayer,255,0,0) outputChatBox("/rules,a explanation of the rules and the punishments",thePlayer,255,0,0) outputChatBox("/report report someone who breaks the rules ",thePlayer,255,0,0) outputChatBox("/lock, lock your vehicle for others",thePlayer,255,0,0) end addCommandHandler("help",showhelp) Edited May 19, 2012 by Guest Link to comment
Wei Posted May 19, 2012 Share Posted May 19, 2012 function playrules(thePlayer) -- you don't need to define command outputChatBox("#FFFB0ENo cheat No spam No disrespect ", thePlayer,255,255,255,true) end addCommandHandler("rules", playrules) Link to comment
iFoReX Posted May 19, 2012 Share Posted May 19, 2012 try this function playrules() outputChatBox("#FFFB0ENo cheat No spam No disrespect ", source,255,255,255,true) end addCommandHandler("rules", playrules) Link to comment
Tete omar Posted May 19, 2012 Author Share Posted May 19, 2012 function playrules(thePlayer) -- you don't need to define command outputChatBox("#FFFB0ENo cheat No spam No disrespect ", thePlayer,255,255,255,true) end addCommandHandler("rules", playrules) Thanks it works 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