-
Posts
451 -
Joined
-
Last visited
Everything posted by ZeyadGTX
-
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 ?
-
Sane Hosting - DDoS Protected - Cheap and Reliable
ZeyadGTX replied to SaneHosting's topic in Hosting solutions
Fuck This Host My server always Status unknown -
you didn't understand me well , i mean when player is muted he can use Pms and Nick Changing
-
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
-
Oh finally Thanks ET-Win , Nikolai96 you are the best
-
can't you give me the full script ?
-
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)
-
Same Problem please help me i started to hate MTA because this script
-
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
-
But your first code you deleted it
-
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
-
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 )
-
OmG finally it works thank you very much guys
-
its your script not his , yours no effect
-
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
-
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
-
Help i tried Those In Client Side And Server Side and No Effect
-
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
-
i need ready made please because i tried every thing
-
i removed guiRoot and i replaces Source still not working the message for all players not for team