Jump to content

ZeyadGTX

Members
  • Posts

    451
  • Joined

  • Last visited

Everything posted by ZeyadGTX

  1. i know but it don't work i tried every thing
  2. when i press Y all can see the message
  3. I have This Client Side script which allow me to change walking style but not working on Skin 10 , i tried skin 0 , 132 , 10 all of them not working why ? addEventHandler ( "onElementModelChange", root, function ( _, newModel ) if ( newModel == 132 ) then setPedWalkingStyle ( source, 10 ) else setPedWalkingStyle ( source, 0 ) end end )
  4. can you help me with script ?
  5. ZeyadGTX

    Huh

    I hope you Like it , and the server is now very different than in videos
  6. i use this , it works addEventHandler("onPlayerspawn",root,function() for k, v in ipairs({"ammo","weapon","clock","money","wanted"}) do showPlayerHudComponent(source,v,false) end end)
  7. like that ? 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 local blip = {} local randomColor = { [1] = {255,255,255}, [2] = {255,0,255}, [3] = {0,255,0} } addEvent("onPlayerTeamChange"); function () if not isElement(blip[source]) then blip[source] = createBlipAttachedTo(source) end local theTeam = getPlayerTeam(source) if theTeam then local r, g, b = getTeamColor(theTeam) setPlayerNametagColor(source, r, g, b) setBlipColor(blip[source], r, g, b, 255) setPlayerName(source,getPlayerName(source):gsub('#%x%x%x%x%x%x',RGBToHex(r,g,b))) else outputChatBox("YOU HAVE NO TEAM", source) rr,gg,bb = unpack(randomColor[math.random(#randomColor)]) setBlipColor(blip[source], rr,gg,bb,255) setPlayerName(source,getPlayerName(source):gsub('#%x%x%x%x%x%x',RGBToHex(rr,gg,bb))) setPlayerNametagColor(source, rr,gg,bb) end end ) addEventHandler("onPlayerQuit", root, function() if isElement(blip[source]) then destroyElement(blip[source]) end end )
  8. you mean in my script ? 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 local blip = {} local randomColor = { [1] = {255,255,255}, [2] = {255,0,255}, [3] = {0,255,0} } addEventHandler("onPlayerTeamChange", root, function () if not isElement(blip[source]) then blip[source] = createBlipAttachedTo(source) end local theTeam = getPlayerTeam(source) if theTeam then local r, g, b = getTeamColor(theTeam) setPlayerNametagColor(source, r, g, b) setBlipColor(blip[source], r, g, b, 255) setPlayerName(source,getPlayerName(source):gsub('#%x%x%x%x%x%x',RGBToHex(r,g,b))) else outputChatBox("YOU HAVE NO TEAM", source) rr,gg,bb = unpack(randomColor[math.random(#randomColor)]) setBlipColor(blip[source], rr,gg,bb,255) setPlayerName(source,getPlayerName(source):gsub('#%x%x%x%x%x%x',RGBToHex(rr,gg,bb))) setPlayerNametagColor(source, rr,gg,bb) end end ) addEventHandler("onPlayerQuit", root, function() if isElement(blip[source]) then destroyElement(blip[source]) end end )
  9. what is the problem my brother name is steven
  10. ZeyadGTX

    Fix

    Is there away here to Make when new player come do like that Name Has Joined The Game [NEW] my joinquit addEventHandler("onClientPlayerJoin", root, function() outputChatBox("* #FFFFFF"..getPlayerName(source):gsub("#%x%x%x%x%x%x","").."#006400 has joined the game", 0, 100, 0, true) end) addEventHandler("onClientPlayerChangeNick", root, function(old, new) old = old:gsub("#%x%x%x%x%x%x","") new = new:gsub("#%x%x%x%x%x%x","") if old ~= new then outputChatBox("* #FFFFFF"..old.."#006400 is now known as #FFFFFF"..new, 0, 100, 0, true) end end) addEventHandler("onClientPlayerQuit", root, function(reason) outputChatBox("* #FFFFFF"..getPlayerName(source):gsub("#%x%x%x%x%x%x","").."#006400 has left the game [#FFFFFF" .. reason .. "#006400]", 0, 100, 0, true) end) --[[ addEventHandler('onClientPlayerQuit', root, function(reason) outputChatBox('* ' .. getPlayerName(source) .. ' has left the game [' .. reason .. ']', 255, 100, 100) end ) ]]
  11. i made like it not stolen omg https://community.multitheftauto.com/index.php?p= ... ls&id=9391
  12. first i want to remove that headshot icon in killmessages Second iwant when you make headshot i want setPedHeadless in setTimer 7000 ( in respawn Time ) function MakePlayerHeadshot( attacker, weapon, bodypart, loss ) if getElementType ( attacker ) == "ped" then if bodypart == 9 then triggerEvent( "onPlayerHeadshot", source, attacker, weapon, loss ) setPedHeadless ( source, true ) killPed( source, attacker, weapon, bodypart ) setTimer( BackUp, 900, 1, source ) end end end function MakeHeadshot( source, attacker, weapon, loss ) triggerEvent( "onPlayerHeadshot", source, attacker, weapon, loss ) killPed( source, attacker, weapon, 9 ) setPedHeadless ( source, true ) setTimer( BackUp, 900, 1, source ) end function BackUp( source ) if getElementType ( source ) == "player" then setPedHeadless ( source, false ) end end addEvent ( "onServerHeadshot", true ) addEventHandler( "onPlayerDamage", getRootElement(), MakePlayerHeadshot ) addEventHandler( "onPlayerKillMessage", getRootElement(), outputHeadshotIcon ) addEventHandler( "onServerHeadshot", getRootElement(), MakeHeadshot )
  13. ZeyadGTX

    Music

    ahahhaahah 310 lines lol its hard
  14. i setteam by admin panel
  15. I have this resource which allow me when i add Player into the team he gets the team color but not working please help 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 local blip = {} local randomColor = { [1] = {255,255,255}, [2] = {255,0,255}, [3] = {0,255,0} } addEventHandler("onPlayerTeamChange", root, function () if not isElement(blip[source]) then blip[source] = createBlipAttachedTo(source) end local theTeam = getPlayerTeam(source) if theTeam then local r, g, b = getTeamColor(theTeam) setPlayerNametagColor(source, r, g, b) setBlipColor(blip[source], r, g, b, 255) setPlayerName(source,getPlayerName(source):gsub('#%x%x%x%x%x%x',RGBToHex(r,g,b))) else outputChatBox("YOU HAVE NO TEAM", source) rr,gg,bb = unpack(randomColor[math.random(#randomColor)]) setBlipColor(blip[source], rr,gg,bb,255) setPlayerName(source,getPlayerName(source):gsub('#%x%x%x%x%x%x',RGBToHex(rr,gg,bb))) setPlayerNametagColor(source, rr,gg,bb) end end ) addEventHandler("onPlayerQuit", root, function() if isElement(blip[source]) then destroyElement(blip[source]) end end )
  16. could some one help me
  17. yes you are right ET-Win
  18. i don't have code i see this in some servers
×
×
  • Create New...