Jump to content

ZeyadGTX

Members
  • Posts

    451
  • Joined

  • Last visited

Everything posted by ZeyadGTX

  1. Hey i have Problem i have Default Killmessages but i just Changed The Images Of weapons , but i have Problem is when you get killed by Hydra it shows that you get killed by Uzi and i have Hydra Image with ID 520 in Killmessage/Icon and when you get killed by Hunter it shows that you killed by explosion Help ?
  2. you didn't understand me well , i mean when player is muted he can use Pms and Nick Changing
  3. Is there away when player gets muted he can't change the nick or he Spam With PM , because when he is muted he can change his nick and sendimg PM insulting otherplayers and thanks
  4. Oh finally Thanks ET-Win , Nikolai96 you are the best
  5. can't you give me the full script ?
  6. What Do you mean like that ? outputChatBox("#00FF00(CLAN)..getPlayerName(source)..":#FFFFFF "..string.gsub(msg, "#%x%x%x%x%x%x", ""), playerData, r, g, b, true)
  7. Same Problem please help me i started to hate MTA because this script
  8. like that ??? local function onplayerChat ( message, messageType ) if ( messageType == 2 ) then cancelEvent ( ) local name = getPlayerName ( source ) local red, green, blue = getPlayerNametagColor ( source ) local hex = RGBToHex ( red, green, blue ) local members = getPlayersInTeam( team ) or {} for _, player in ipairs(members) do outputChatBox("#00FF00(CLAN)"..getPlayerName(source)..":#FFFFFF "..string.gsub(msg, "#%x%x%x%x%x%x", ""), playerData, r, g, b, true) end outputServerLog( "(TEAM): " .. name .. ": " .. message ) end end addEventHandler ( "onPlayerChat", root, onplayerChat ) function RGBToHex(red, green, blue) if((red < 0 or red > 255 or green < 0 or green > 255 or blue < 0 or blue > 255)) then return nil end return string.format("#%.2X%.2X%.2X", red, green, blue) end
  9. But your first code you deleted it
  10. Like that addEventHandler('onPlayerChat', getRootElement(), function(msg, type) if type == 2 then cancelEvent() local r, g, b = getPlayerNametagColor(source) for placeNumber, playerData in ipairs(getPlayersInTeam(getPlayerTeam(source))) do outputChatBox("#FF0000(CLAN)"..getPlayerName(source)..":#FFFFFF "..string.gsub(msg, "#%x%x%x%x%x%x", ""), playerData, r, g, b, true) end end end ) function RGBToHex(red, green, blue) if((red < 0 or red > 255 or green < 0 or green > 255 or blue < 0 or blue > 255)) then return nil end return string.format("#%.2X%.2X%.2X", red, green, blue) end
  11. Hahahahah Nah but i have another question on that i put the Green Color Code Before the CLAN , but Every thing changes to green i wanna just the Clan be Green, itsn't important if you don't want to tell me addEventHandler('onPlayerChat', getRootElement(), function(msg, type) if type == 2 then cancelEvent() local r, g, b = getPlayerNametagColor(source) for placeNumber, playerData in ipairs(getPlayersInTeam(getPlayerTeam(source))) do outputChatBox("#00FF00(CLAN)"..getPlayerName(source)..":#FFFFFF "..string.gsub(msg, "#%x%x%x%x%x%x", ""), playerData, r, g, b, true) end end end )
  12. OmG finally it works thank you very much guys
  13. its your script not his , yours no effect
  14. Nikolai i know that its in Server Side itsn't showing (CLAN) it shows (TEAM) local function onplayerChat ( message, messageType ) if ( messageType == 2 ) then cancelEvent ( ) local name = getPlayerName ( source ) local red, green, blue = getPlayerNametagColor ( source ) local hex = RGBToHex ( red, green, blue ) local members = getPlayersInTeam( team ) or {} for _, player in ipairs(members) do outputChatBox( "#FFFFFF(CLAN)" .. hex.." "..name .. ":#FFFFFF" .. message, player, 255, 255, 255, true ) end outputServerLog( "(TEAM): " .. name .. ": " .. message ) end end addEventHandler ( "onPlayerChat", root, onplayerChat ) This is in Server Side but no effect
  15. your script isn't working you gave me my posted script again ! iam asking for help if you want okay if you don't so go away
  16. Help i tried Those In Client Side And Server Side and No Effect
  17. local function onplayerChat ( message, messageType ) if ( messageType == 2 ) then cancelEvent ( ) local name = getPlayerName ( source ) local red, green, blue = getPlayerNametagColor ( source ) local hex = RGBToHex ( red, green, blue ) local members = getPlayersInTeam( team ) or {} for _, player in ipairs(members) do outputChatBox( "#FFFFFF(CLAN)" .. hex.." "..name .. ":#FFFFFF" .. message, player, 255, 255, 255, true ) end outputServerLog( "(TEAM): " .. name .. ": " .. message ) end end addEventHandler ( "onPlayerChat", root, onplayerChat ) For you Nikolai itsnot Working at all its not showing any thing , i mean itsnot showing (CLAN) OR (TEAM) it makes space in outputChatBox Heeeeeeeeeeeelp
  18. i need ready made please because i tried every thing
  19. i removed guiRoot and i replaces Source still not working the message for all players not for team
×
×
  • Create New...