Jump to content

iPrestege

Members
  • Posts

    10,056
  • Joined

  • Last visited

  • Days Won

    27

Everything posted by iPrestege

  1. ي عزيزي دور الافضل و من قال عالم وهمي اجباري؟ كل اللي بيمر علية ارقمنت الروتيشن ! بس لا اكثر ولا اقل اقرا الويكي لاهنت ( ( =
  2. iPrestege

    helppp!!!

    local miniguns = {} addEvent( "onEnter", true ) addEventHandler( "onEnter",root,function(thePlayer, seat) if seat ~= 0 and getElementModel(source) ~= 425 then return end if not miniguns[thePlayer] then miniguns[thePlayer] = {} end local x, y, z = getElementPosition ( source ) local rx, ry, rz = getElementRotation ( source ) miniguns[thePlayer][1] = createWeapon ( "minigun", x, y, z ) miniguns[thePlayer][2] = createWeapon ( "minigun", x, y, z ) miniguns[thePlayer][3] = createWeapon ( "minigun", x, y, z ) miniguns[thePlayer][4] = createWeapon ("minigun", x, y, z ) for i = 1,#miniguns[thePlayer] do setWeaponOwner ( miniguns[thePlayer][i], thePlayer) setElementAlpha ( miniguns[thePlayer][i],0) end attachElements ( miniguns[thePlayer][1], source, 2.15, 0.5, -1.2, 0, 0, 90 ) attachElements ( miniguns[thePlayer][2], source, -2.10, 0.5, -1.2, 0, 0, 90 ) attachElements ( miniguns[thePlayer][3], source, 2.57, 0.5, -1.1, 0, 0, 90 ) attachElements ( miniguns[thePlayer][4], source, -2.52, 0.5, -1.1, 0, 0, 90 ) if thePlayer~=localPlayer then return end toggleControl ( "vehicle_fire", false ) toggleControl ( "vehicle_secondary_fire", false ) for _,key in ipairs(getBoundKeys("vehicle_fire"))do bindKey ( key, "down",fire ) bindKey ( key, "up",fire ) end end) addEvent( "onExit", true ) addEventHandler( "onExit",root,function(thePlayer, seat) if seat ~= 0 and getElementModel(source) ~= 425 then return end for _,minigun in ipairs(miniguns[thePlayer])do destroyElement (minigun) end miniguns[thePlayer] = nil if thePlayer~=localPlayer then return end toggleControl ( "vehicle_fire", false ) toggleControl ( "vehicle_secondary_fire", false ) for _,key in ipairs(getBoundKeys("vehicle_fire"))do unbindKey ( key, "down",fire ) unbindKey ( key, "up",fire ) end end) function fire(_,state) triggerServerEvent("fire",localPlayer,state) end function move(source) local MiniSound = playSound3D("test.wav", x, y, z,false) setSoundMaxDistance(MiniSound, 140) setSoundEffectEnabled(MiniSound,"gargle",true) attachElements ( MiniSound, getPedOccupiedVehicle(source), 0, 0.5, -1.1, 0, 0, 90 ) end addEvent( "onEnableFire", true ) addEventHandler( "onEnableFire",root,function() for _,minigun in ipairs(miniguns[source])do setWeaponState ( minigun, "firing") end move(source) end) addEvent( "onDisableFire", true ) addEventHandler( "onDisableFire",root,function() for _,minigun in ipairs(miniguns[source])do setWeaponState ( minigun, "ready") end move(source) end)
  3. function toggleInvis ( thePlayer ) if getElementAlpha( thePlayer ) == 0 then setElementAlpha ( thePlayer, 130) else setElementAlpha ( thePlayer, 0 ) end end addCommandHandler ( "god", toggleInvis ) Try .
  4. addEventHandler ( "onClientGUIClick", but, function ( ) guiSetVisible ( mem, true ) guiBringToFront ( mem ) end,false )
  5. -_-" Use: setElementModel -- تحديد شخصية العنصر setElementPosition -- تحديد مكان العنصر ي حبيبي افضل سباون وش ولية تسوي موديل؟ سبآون متوفر فيها حاجات كثير بـ وظيفة وحدهـ تسويها و لو تسوية كلنت مايظهر للكل يظهر للاعب نفسة : ) ي ليت لا تهرج ثآنية الا بـ شيء آبخص بة
  6. onClientGUIClick triggerServerEvent spawnPlayer
  7. if ( source == but ) then guiSetVisible ( mem, true )
  8. Do you mean you want to get a word in the sentence if it were in the middle or at the end?
  9. iPrestege

    helppp!!!

    Here you are try this one and this one not tested but i hope it's work : local miniguns = {} addEvent( "onEnter", true ) addEventHandler( "onEnter",root,function(thePlayer, seat) if seat ~= 0 and getElementModel(source) ~= 425 then return end if not miniguns[thePlayer] then miniguns[thePlayer] = {} end local x, y, z = getElementPosition ( source ) local rx, ry, rz = getElementRotation ( source ) miniguns[thePlayer][1] = createWeapon ( "minigun", x, y, z ) miniguns[thePlayer][2] = createWeapon ( "minigun", x, y, z ) miniguns[thePlayer][3] = createWeapon ( "minigun", x, y, z ) miniguns[thePlayer][4] = createWeapon ("minigun", x, y, z ) for i = 1,#minigun[thePlayer] do setWeaponOwner ( minigun[thePlayer][i], thePlayer) setElementAlpha ( minigun[thePlayer][i],0) end attachElements ( miniguns[thePlayer][1], source, 2.15, 0.5, -1.2, 0, 0, 90 ) attachElements ( miniguns[thePlayer][2], source, -2.10, 0.5, -1.2, 0, 0, 90 ) attachElements ( miniguns[thePlayer][3], source, 2.57, 0.5, -1.1, 0, 0, 90 ) attachElements ( miniguns[thePlayer][4], source, -2.52, 0.5, -1.1, 0, 0, 90 ) if thePlayer~=localPlayer then return end toggleControl ( "vehicle_fire", false ) toggleControl ( "vehicle_secondary_fire", false ) for _,key in ipairs(getBoundKeys("vehicle_fire"))do bindKey ( key, "down",fire ) bindKey ( key, "up",fire ) end end) addEvent( "onExit", true ) addEventHandler( "onExit",root,function(thePlayer, seat) if seat ~= 0 and getElementModel(source) ~= 425 then return end for _,minigun in ipairs(miniguns[thePlayer])do destroyElement (minigun) end miniguns[thePlayer] = nil if thePlayer~=localPlayer then return end toggleControl ( "vehicle_fire", false ) toggleControl ( "vehicle_secondary_fire", false ) for _,key in ipairs(getBoundKeys("vehicle_fire"))do unbindKey ( key, "down",fire ) unbindKey ( key, "up",fire ) end end) function fire(_,state) triggerServerEvent("fire",localPlayer,state) end function move(source) local MiniSound = playSound3D("test.wav", x, y, z,false) setSoundMaxDistance(MiniSound, 140) setSoundEffectEnabled(MiniSound,"gargle",true) attachElements ( MiniSound, getPedOccupiedVehicle(source), 0, 0.5, -1.1, 0, 0, 90 ) end addEvent( "onEnableFire", true ) addEventHandler( "onEnableFire",root,function() for _,minigun in ipairs(miniguns[source])do setWeaponState ( minigun, "firing") end move(source) end) addEvent( "onDisableFire", true ) addEventHandler( "onDisableFire",root,function() for _,minigun in ipairs(miniguns[source])do setWeaponState ( minigun, "ready") end move(source) end) And the server side use the same one .
  10. Example https://wiki.multitheftauto.com/wiki/AR/playSound#Example التعريب تعرب الصفحة كاملة مو بس مثآل ي الغالي
  11. addEventHandler("onPlayerDamage",getRootElement(), function ( attacker, attackerWeapon ) if isObjectInACLGroup ("user."..getAccountName ( getPlayerAccount ( attacker ) ), aclGetGroup ( "Group Name" ) ) then if ( attacker and attacker ~= source and attackerWeapon == 3 ) then local id = getElementModel ( source ) local Dimension = getElementDimension ( source ) local Interior = getElementInterior ( source ) spawnPlayer ( source , x , y , z , 0 , id , Interior , Dimension ,getTeamFromName ("Team Name") ) end end end ) جربة كذآ ورد لي خبر ~
  12. Works great here .
  13. اشتغل هو ؟ اية يصير لية لا : isObjectInACLGroup getAccountName getPlayerAccount بس تبية للاعب صح يعني يتحقق الاعب هو بالقروب او لا صح؟ مو القآتل ذذذذ؟
  14. Are you sure it's server side? Post the meta.xml file .
  15. مآله آي معنى كودكـ !! Server Side ! addEventHandler("onPlayerDamage",getRootElement(), function ( attacker, attackerWeapon ) if ( attacker and attacker ~= source and attackerWeapon == 3 ) then local id = getElementModel ( source ) local Dimension = getElementDimension ( source ) local Interior = getElementInterior ( source ) spawnPlayer ( source , x , y , z , 0 , id , Interior , Dimension ,getTeamFromName ("Team Name") ) end end )
  16. هو يقول الي يضرب لاعب في تيم محدد بسلاح محدد ينتقل لمكان محدد, يعني ما يحتاج تسوي سيت للاعب عارف المفروض spawnPlayer بس اشوفكم تعطونة setPosition ذذذذذذذذذذذذذذ!!
  17. getTeamFromName setPlayerTeam "onPlayerDamage" -- weapon
  18. Wrong ^ كلهم ذذ : addEventHandler("onPlayerDamage",getRootElement(), function ( attacker ) local team = getPlayerTeam ( attacker ) if ( attacker and attacker ~= source and team and getTeamName( team ) == "Team Name" ) then outputChatBox("* الاعب : "..getPlayerName(attcker).." ضرب : "..getPlayerName(source).." ",getRootElement(),255,0,0) end end )
  19. انا يوم احطة انت ماكنت حاط مثلي كنت حاط بس الحدث انت عدلت ردكـ !ذذ
  20. "onPlayerDamage" getPlayerTeam getTeamName outputChatBox getRootElement getPlayerName
  21. صح عليكـ .. الداتا ~
  22. لا بالعكس اسهل و تسهل كثير كثير بالاستخدامات !! مثلا نفرض انك بتسوي كوماند كذآ : addCommandHandler("data", function ( ) if not ( getElementData(localPlayer,"DataValue") == true ) then setElementData(localPlayer,"DataValue",true) else outputChatBox("تم العثور على الداتا") end end )
  23. اكيد اجل كيف يحصلها وللمعلومية تقدر تستخدمها بـ مود خارجي زي القروب مسوي داتا هو لليدر <>
×
×
  • Create New...