Jump to content

مساعده بالاكود


Recommended Posts

-- Server Side : 
    local myMarker = createMarker ( x, y, z, "cylinder", 15.5, 255, 255, 0, 170 ) 
      
    addEventHandler( "onMarkerHit", myMarker, 
     function (element) 
    if ( getElementType (element) == "player" ) then 
     setElementData ( element,"nodeath", true) 
     toggleControl ( element, "vehicle_secondary_fire", false ) 
     toggleControl ( element, "fire", false ) 
     toggleControl ( element, "next_weapon", false ) 
     toggleControl ( element, "previous_weapon", false ) 
     toggleControl ( element, "aim_weapon", false ) 
     toggleControl ( element, "fire", false ) 
             end 
       end 
     ) 
      
    addEventHandler ("onMarkerLeave",myMarker, 
     function (element) 
    if ( getElementType (element) == "player" ) then 
    removeElementData ( element, "nodeath")  
     toggleControl ( element, "vehicle_secondary_fire", true ) 
     toggleControl ( element, "fire", true ) 
     toggleControl ( element, "next_weapon", true ) 
     toggleControl ( element, "previous_weapon", true ) 
     toggleControl ( element, "aim_weapon", true ) 
     toggleControl ( element, "fire", true ) 
              end 
        end 
     ) 

--Client Side : 
addEventHandler ( "onClientPlayerDamage",localPlayer, 
function () 
    if getElementData(localPlayer,"nodeath") then 
        cancelEvent() 
    end 
end) 
  

Link to comment
-- Server Side : 
    local myMarker = createMarker ( x, y, z, "cylinder", 15.5, 255, 255, 0, 170 ) 
      
    addEventHandler( "onMarkerHit", myMarker, 
     function (element) 
    if ( getElementType (element) == "player" ) then 
     setElementData ( element,"nodeath", true) 
     toggleControl ( element, "vehicle_secondary_fire", false ) 
     toggleControl ( element, "fire", false ) 
     toggleControl ( element, "next_weapon", false ) 
     toggleControl ( element, "previous_weapon", false ) 
     toggleControl ( element, "aim_weapon", false ) 
     toggleControl ( element, "fire", false ) 
             end 
       end 
     ) 
      
    addEventHandler ("onMarkerLeave",myMarker, 
     function (element) 
    if ( getElementType (element) == "player" ) then 
    removeElementData ( element, "nodeath")  
     toggleControl ( element, "vehicle_secondary_fire", true ) 
     toggleControl ( element, "fire", true ) 
     toggleControl ( element, "next_weapon", true ) 
     toggleControl ( element, "previous_weapon", true ) 
     toggleControl ( element, "aim_weapon", true ) 
     toggleControl ( element, "fire", true ) 
              end 
        end 
     ) 

--Client Side : 
addEventHandler ( "onClientPlayerDamage",localPlayer, 
function () 
    if getElementData(localPlayer,"nodeath") then 
        cancelEvent() 
    end 
end) 
  

:redhotevil: خله يحاول مب تعطيه جاهز , +

getElementData(localPlayer,"nodeath") 

وين setElementData nodeath ?

-_-

Link to comment
-- Server Side : 
    local myMarker = createMarker ( x, y, z, "cylinder", 15.5, 255, 255, 0, 170 ) 
      
    addEventHandler( "onMarkerHit", myMarker, 
     function (element) 
    if ( getElementType (element) == "player" ) then 
     setElementData ( element,"nodeath", true) 
     toggleControl ( element, "vehicle_secondary_fire", false ) 
     toggleControl ( element, "fire", false ) 
     toggleControl ( element, "next_weapon", false ) 
     toggleControl ( element, "previous_weapon", false ) 
     toggleControl ( element, "aim_weapon", false ) 
     toggleControl ( element, "fire", false ) 
             end 
       end 
     ) 
      
    addEventHandler ("onMarkerLeave",myMarker, 
     function (element) 
    if ( getElementType (element) == "player" ) then 
    removeElementData ( element, "nodeath")  
     toggleControl ( element, "vehicle_secondary_fire", true ) 
     toggleControl ( element, "fire", true ) 
     toggleControl ( element, "next_weapon", true ) 
     toggleControl ( element, "previous_weapon", true ) 
     toggleControl ( element, "aim_weapon", true ) 
     toggleControl ( element, "fire", true ) 
              end 
        end 
     ) 

--Client Side : 
addEventHandler ( "onClientPlayerDamage",localPlayer, 
function () 
    if getElementData(localPlayer,"nodeath") then 
        cancelEvent() 
    end 
end) 
  

خله يحاول مب تعطيه جاهز , +

getElementData(localPlayer,"nodeath") 

وين setElementData nodeath ?

-_-

in the server side :!:

Link to comment
مب فاهم شئ منكم :\

:evil::evil:

-- Server Side : 
    local myMarker = createMarker ( x, y, z, "cylinder", 15.5, 255, 255, 0, 170 ) 
      
    addEventHandler( "onMarkerHit", myMarker, 
     function (element) 
    if ( getElementType (element) == "player" ) then 
     setElementData ( element,"nodeath", true) 
     toggleControl ( element, "vehicle_secondary_fire", false ) 
     toggleControl ( element, "fire", false ) 
     toggleControl ( element, "next_weapon", false ) 
     toggleControl ( element, "previous_weapon", false ) 
     toggleControl ( element, "aim_weapon", false ) 
     toggleControl ( element, "fire", false ) 
             end 
       end 
     ) 
      
    addEventHandler ("onMarkerLeave",myMarker, 
     function (element) 
    if ( getElementType (element) == "player" ) then 
    removeElementData ( element, "nodeath")  
     toggleControl ( element, "vehicle_secondary_fire", true ) 
     toggleControl ( element, "fire", true ) 
     toggleControl ( element, "next_weapon", true ) 
     toggleControl ( element, "previous_weapon", true ) 
     toggleControl ( element, "aim_weapon", true ) 
     toggleControl ( element, "fire", true ) 
              end 
        end 
     ) 

--Client Side : 
addEventHandler ( "onClientPlayerDamage",localPlayer, 
function () 
    if getElementData(localPlayer,"nodeath") then 
        cancelEvent() 
    end 
end) 
  

Link to comment
مب فاهم شئ منكم :\

:evil::evil:

-- Server Side : 
    local myMarker = createMarker ( x, y, z, "cylinder", 15.5, 255, 255, 0, 170 ) 
      
    addEventHandler( "onMarkerHit", myMarker, 
     function (element) 
    if ( getElementType (element) == "player" ) then 
     setElementData ( element,"nodeath", true) 
     toggleControl ( element, "vehicle_secondary_fire", false ) 
     toggleControl ( element, "fire", false ) 
     toggleControl ( element, "next_weapon", false ) 
     toggleControl ( element, "previous_weapon", false ) 
     toggleControl ( element, "aim_weapon", false ) 
     toggleControl ( element, "fire", false ) 
             end 
       end 
     ) 
      
    addEventHandler ("onMarkerLeave",myMarker, 
     function (element) 
    if ( getElementType (element) == "player" ) then 
    removeElementData ( element, "nodeath")  
     toggleControl ( element, "vehicle_secondary_fire", true ) 
     toggleControl ( element, "fire", true ) 
     toggleControl ( element, "next_weapon", true ) 
     toggleControl ( element, "previous_weapon", true ) 
     toggleControl ( element, "aim_weapon", true ) 
     toggleControl ( element, "fire", true ) 
              end 
        end 
     ) 

--Client Side : 
addEventHandler ( "onClientPlayerDamage",localPlayer, 
function () 
    if getElementData(localPlayer,"nodeath") then 
        cancelEvent() 
    end 
end) 
  

هاي اكواد جاهزة بي عدم الموت ؟؟

Link to comment
    local myMarker = createMarker ( x, y, z, "cylinder", 15.5, 255, 255, 0, 170 ) 
  

15.5 = حجم الماركر

255,255,0 = للون الماركر

170 = شفافية

سويته وظبته بس المسافة كبيرة اوي رغم اني ضابته وسويت الماركر بال ماب ايديتور + اللون بايظ سويته احمر ومب شغال

وايضا اخر طلب ابيه كا يقدر يمسك السلاح يكون معه قبضة اليد فقط ويمكن ان يضرب باليد لكن لا يموت وشكرا

Link to comment
  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...