Jump to content

abod99119911

Members
  • Posts

    74
  • Joined

  • Last visited

Everything posted by abod99119911

  1. so now the player wont get wanted? in LV
  2. very very good i was like AWESOME keep it up i like it
  3. abod99119911

    Question

    i think he mean that gun (anti rush)
  4. hi guyz. this is script which is to make marker and when player get in the will get full health and armor but i want to add gun:M4 with ammo local team = createTeam ( "TeamName", 0, 255, 0 ) local theMarker = createMarker ( x, y, z, "cylinder", 1.5, 255, 255, 0, 170 ) addEventHandler("onMarkerHit", theMarker, function (thePlayer) if ( getElementType ( thePlayer ) == 'player' ) then if ( getPlayerTeam ( thePlayer ) and getTeamName ( getPlayerTeam ( thePlayer ) ) == 'TeamName' ) then setElementHealth ( thePlayer, 100 ) setPedArmor ( thePlayer, 100 ) end end end ) and here i can add the X, Y, Z for where the marker will be ? local theMarker = createMarker ( x, y, z, "cylinder", 1.5, 255, 255, 0, 170 )
  5. so waht i will do with that ? and for what is that command?
  6. thx verry much i would like to thank u verry verry much 100% work thank you
  7. السلام عليكم انشالله طيبين و ندخل بل موضوع اليوم طلبت سكربت و جاني السيكربت و السكرب عباره عن موود لما تسوي ميوت للاعب يطلع كتابه فوق راس الاعب مكتوب [muted] مثال و الجماعه ما قصرو و جابولي السكربت client side-- function testing() local px, py, pz, tx, ty, tz, dist px, py, pz = getCameraMatrix( ) for _, v in ipairs( getElementsByType 'player' ) do tx, ty, tz = getElementPosition( v ) dist = math.sqrt( ( px - tx ) ^ 2 + ( py - ty ) ^ 2 + ( pz - tz ) ^ 2 ) if dist < 32.0 then if isLineOfSightClear( px, py, pz, tx, ty, tz, true, false, false, true, false, false, false,localPlayer ) then local sx, sy, sz = getPedBonePosition( v, 5 ) local x,y = getScreenFromWorldPosition( sx, sy, sz + 0.30 ) local x1,y1 = getScreenFromWorldPosition( sx, sy, sz + 0.35 ) local r,g,b = getPlayerNametagColor(localPlayer) scale = 0.65 if x then if getElementData(v,"playermuted") == 1 then dxDrawText( "Muted", x, y, x, y, tocolor(r, g, b), scale + ( 15 - dist ) * 0.02, "bankgothic" ) end end end end end end addEventHandler("onClientRender",root,testing) server side--- function isMuted() setElementData(source,"playermuted",1) end addEventHandler("onPlayerMute",root,isMuted) function isNotMuted() setElementData(source,"playermuted",0) end addEventHandler("onPlayerUnmute",root,isNotMuted) المشكله هيا 1.الاميون ما يختفي لما يخلص الوقت و بس و اذا تطلبون ال ميتا meta.mxl
  8. not working. i started the resores and i give mute to any player then its not working
  9. please some one tell help me
  10. where to put it in the clinet?
  11. where to add that function on client.lua
  12. he can use a timer to check isPlayerMuted then addEvent Back . if not isPlayerMuted then ---remove it again sorry but when to add that
  13. i just want to know how to make zone and disable wanted in there
  14. so that will remove that [muted] tag after the player get unmuted?
  15. still not working. i give unmute and it still not removed the i give mut 1 min and wait 1 min same not removed
  16. very good and thx but when i do unmute the write [muted] still on the player head not removed
  17. when i give 1 player mute. they all the player in server get that [muted] on them heads
  18. how to make that player wont get wanted in LV no stars so player don't get wanted level if the DM or hijacker other car etc..
  19. do u check the script any thing wrong on it ?
  20. i have resource but i cant see it in "p" admin panel so i can start it and it full resource and wheni go to MTA server.exe and type start it say access denied to command 'start' ACL: access denied for start.
  21. function testing() local px, py, pz, tx, ty, tz, dist px, py, pz = getCameraMatrix( ) for _, v in ipairs( getElementsByType 'player' ) do tx, ty, tz = getElementPosition( v ) dist = math.sqrt( ( px - tx ) ^ 2 + ( py - ty ) ^ 2 + ( pz - tz ) ^ 2 ) if dist < 32.0 then if isLineOfSightClear( px, py, pz, tx, ty, tz, true, false, false, true, false, false, false,localPlayer ) then local sx, sy, sz = getPedBonePosition( v, 5 ) local x,y = getScreenFromWorldPosition( sx, sy, sz + 0.30 ) local x1,y1 = getScreenFromWorldPosition( sx, sy, sz + 0.35 ) local r,g,b = getPlayerNametagColor(localPlayer) scale = 0.65 if x then if getElementData(localPlayer,"playermuted") == 1 then dxDrawText( "Muted", x, y, x, y, tocolor(rr, gg, bb), scale + ( 15 - dist ) * 0.02, "bankgothic" ) end end end end end end addEventHandler("onClientRender",root,testing) on line 15. can i change the color? and if there any problem please tell me
  22. veryy very nice 1 and thx it help
×
×
  • Create New...