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. Business System viewtopic.php?f=108&t=35797 Notepad++ Syntax Highlighting & Auto Completion viewtopic.php?f=91&t=76726 SQLite Tutorial viewtopic.php?f=148&t=38203
CowTurbo Posted July 3, 2011 Posted July 3, 2011 function setName ( thePlayer,commandName) setPlayerNametagColor(thePlayer, 255,255,0 ) end addCommandHandler ( "adminduty", setName ) ? http://mrteamgaming.eu
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 Ingame Name : |DGT|Puma DGT Clan Server 24/7 Owner/Scripter MultiGameMode in progress :
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"? San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
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 .... Ingame Name : |DGT|Puma DGT Clan Server 24/7 Owner/Scripter MultiGameMode in progress :
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? San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
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 .. Ingame Name : |DGT|Puma DGT Clan Server 24/7 Owner/Scripter MultiGameMode in progress :
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