krYshuT Posted January 8, 2011 Share Posted January 8, 2011 Hello I want to destroy the HEX codes from player's nicknames in outputs, when someone is mute, kicked, etc. It's placed in the messages.xml file, so i don't think it works the same way as in the LUA scripting. Example: <group action="ban" r="255" g="0" b="0"> <all>$player has been banned$by_admin_4all. $data2</all> <log>ADMIN: $admin has banned $player $data $data2</log> </group> <group action="kick" r="255" g="0" b="0"> <all>$player has been kicked$by_admin_4all.</all> <log>ADMIN: $admin has kicked $player $data</log> </group> <group action="mute" r="255" g="0" b="0"> <all>$player has been muted$by_admin_4all. $data2</all> <log>ADMIN: $admin has muted $player $data $data2</log> </group> What shall I add to destroy the hex codes in game? Link to comment
Azten Posted February 11, 2011 Share Posted February 11, 2011 am not a good scripter but i don't recommend editing that Link to comment
12p Posted February 11, 2011 Share Posted February 11, 2011 What shall I add to destroy the hex codes in game? https://forum.multitheftauto.com/viewtopic.php?f=91&t=31829 using your mind you can find a way to destroy it, with this link as helping hand. Link to comment
Jockie Posted February 12, 2011 Share Posted February 12, 2011 I think he mean this: string.gsub(getPlayerName(thePlayer), "#%x%x%x%x%x%x", "") Link to comment
qaisjp Posted March 7, 2011 Share Posted March 7, 2011 I think i remember finding the thing that handles this in admin/server/main_xxx.lua - I wanted to make it say *#ff0000*INFO: #ffff00 $player has been banned. So i modified that line and hex worked...i will try and see if i can find that line and then you can use your kidney's (or your brain) to figure out how to do what Jockie said, and yes, he does mean that. 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