Jump to content

-RoCk-Alex

Members
  • Posts

    85
  • Joined

  • Last visited

Everything posted by -RoCk-Alex

  1. i want a Rank system for Basemode please can someone help? PLEASE!
  2. thx man i never really paid attention to that resource
  3. i wanna a GUI window which toggles weapon custom sound on/off with 2 buttons one is "Sound On" and second "Sound Off" PLEASE HELP
  4. you are great man it works perfect thx
  5. sorry man but i think you didn't understand my problem see my last post and yes this didn't solved it
  6. IF THIS TOPIC IS NOT CLOSED THEN YOU CAN USE THIS COMMAND TO DISABLE ANY COMMAND addEventHandler("onPlayerSpawn", root, function () removeCommandHandler("reconnect") end)
  7. ok maybe this will help you understand my problem better :- Before starting the RESOURCE After starting the RESOURCE SEE THE NAME AND THE TEXT COLOR CHANGED? THAT IS MY PROBLEM NOTE :- RED COLOR IN MY NAME WAS THE TEAM COLOR IN BASEMODE SERVER AND I WANT IT TO BE EXACT
  8. [/color] the problem is that the color of name changes from original to the color of tag or the id ex:- if name is simple Alex ( no color ) and tag is [Admin] name color changes to [Admin] Alex Same with text if name is Alex followed with simple text no color like MTA Rocks then the text color changes to Alex : MTA Rocks i want the name and the text color to be exactly same ([Admin]Alex) and (Alex:MTA Rocks)
  9. man the problem is still not fixed see the image the name and text color
  10. Help needed with this script please:- function chatbox(text, msgtype) local root = getRootElement() local account = getAccountName(getPlayerAccount(source)) local name = getPlayerName(source) local tag = getElementData(source, "ID") if (msgtype == 0) then if isObjectInACLGroup("user." .. account, aclGetGroup("HeadAdmin")) then cancelEvent(true) outputChatBox(" #cccccc["..tag.."] #8B1A1A[HEADADMIN] .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true) outputServerLog("CHAT: [HEADADMIN] " .. name .. ": " .. text) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin")) then cancelEvent(true) outputChatBox("#cccccc["..tag.."] #FF0000[ADMIN] " .. name ..":#FFFFFF " .. text, root, 255, 255, 255, true) outputServerLog("CHAT: [ADMIN] " .. name .. ": " .. text) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Moderator")) then cancelEvent(true) outputChatBox("#cccccc["..tag.."] #00FF00[MODERATOR] " .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true) outputServerLog("CHAT: [MODERATOR] " .. name .. ": " .. text) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Everyone")) then cancelEvent(true) outputChatBox("#cccccc["..tag.."] " .. name .. ": " .. text, root, 255, 255, 255, true) outputServerLog("CHAT: " .. name .. ": " .. text) end elseif (msgtype == 2) then end end addEventHandler("onPlayerChat", root, chatbox) function RGBToHex(red, green, blue, alpha) if((red < 0 or red > 255 or green < 0 or green > 255 or blue < 0 or blue > 255) or (alpha and (alpha < 0 or alpha > 255))) then return nil end if(alpha) then return string.format("#%.2X%.2X%.2X%.2X", red,green,blue,alpha) else return string.format("#%.2X%.2X%.2X", red,green,blue) end end i want the name and text color to be the default but they become of the color of the ACL tag or if name has a color code then the txt becomes of name color Like:- if name is Player the text becomes :-abcdefg Or:- if player is in admin group ([ADMIN]) and if name is Player then the name and text color changes to [ADMIN] Player : abcdefg
×
×
  • Create New...