ThaD4N13L Posted July 3, 2011 Posted July 3, 2011 I need a code for a admin Duty Script where it Shows your name in Game as Yellow or Red When you type in /adminduty
JR10 Posted July 3, 2011 Posted July 3, 2011 We don't give away scripts you need to try yourself first and then ask for help with your code.
CowTurbo Posted July 3, 2011 Posted July 3, 2011 function setName ( thePlayer,commandName) setPlayerNametagColor(thePlayer, 255,255,0 ) end addCommandHandler ( "adminduty", setName ) ?
bandi94 Posted July 4, 2011 Posted July 4, 2011 (edited) try this i don't test it addEventHandler ("onPlayerChat",getRootElement(), function(message,typ,player) if (type(string.find(message,"/adminduty"))) then local player = getPlayerName(source) setPlayerNametagColor(source, 255,255,0 ) end end) Edited July 4, 2011 by Guest
Castillo Posted July 4, 2011 Posted July 4, 2011 I don't understand what are you doing here... you are checking if he typed /adminduty, but what is the == "number"?
bandi94 Posted July 4, 2011 Posted July 4, 2011 "number" - This includes any number floating point (-0.22, 5.2333 (anything not an int)) and integers (-2,-1,0,1,2,3) its my foul i make a cenzur script and that "number" is if you tipe "fu.ck" you still get mutet and i just copy paste the handler ....
Castillo Posted July 4, 2011 Posted July 4, 2011 You are kidding me right? I know what a "number" is , but I don't understand why you used it in that script, was a mistake?
bandi94 Posted July 4, 2011 Posted July 4, 2011 i just copy pase the handler form my cenzur system .... and i forgot to delet that ..
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