Jump to content

تعديل بسيط علي كود


Dr.Xen

Recommended Posts

السلام عليكم ورحمة الله وبركاته

ابيكم تعدلو لي الكود ..

        elseif ( source == health1 ) or ( source == health2 ) or ( source == health3 ) or ( source == health4 )  then 
        if getElementData( hPlayer, 'Group' ) == groupName then 
        setPedArmor( hPlayer, 200 ) 
        setElementHealth( hPlayer, 100 ) 
        fixVehicle( getPedOccupiedVehicle( hPlayer ) ) 
        addVehicleUpgrade ( element, 1010 ) 
        setVehiclePaintjob ( element, 2 ) 
        end 

اذا لمست يعبي دمي ودرعي واقدر اضرب كراتيكر وزي كذا

Edited by Guest
Link to comment
    marker = createMarker (877.19921875,-2098,13.800000190735, "cylinder", 2, 255, 0, 255, 255 ) 
          
    addEventHandler ( "onMarkerHit", marker, 
    function ( hitElement ) 
    if  hitElement  == localPlayer then 
    if getElementType ( hitElement ) == "hitElement" then 
    if getElementData( hitElement ,'gang') == '[ARMY]' then 
       setElementHealth ( hitElement, 100 ) 
       setPedArmor ( hitElement, 100 ) 
       setPedSkin ( hitElement, 230 ) 
    else 
       outputChatBox ( "* You most be [ARMY]Group ", hitElement, 0, 0, 255, true ) 
            end 
        end 
    end 
end 
) 

وش كراتيكر ؟

Edited by Guest
Link to comment

marker = createMarker (877.19921875,-2098,13.800000190735, "cylinder", 2, 255, 0, 255, 255 ) 
       
addEventHandler ( "onMarkerHit", marker,function ( hitElement ) 
     if getElementType ( hitElement ) == "player" then 
          if getElementData( hitElement ,'gang') == '[ARMY]' then 
            setElementHealth ( hitElement, 100 ) 
            setPedArmor ( hitElement, 100 ) 
            setPedSkin ( hitElement, 230 ) 
          else 
            outputChatBox ( "* You most be [ARMY]Group ", hitElement, 0, 0, 255, true ) 
          end 
     end 
end 
) 
Link to comment
    elseif ( source == health1 ) or ( source == health2 ) or ( source == health3 ) or ( source == health4 )  then 
    if getElementData( hPlayer, 'Group' ) == groupName then 
    setPedArmor( hPlayer, 200 ) 
    setElementHealth( hPlayer, 100 ) 
    fixVehicle( getPedOccupiedVehicle( hPlayer ) ) 
    addVehicleUpgrade ( element, 1010 ) 
    setVehiclePaintjob ( element, 2 ) 
    end 

الكود ذا شغال معي ممكن تعدل على ذا @

Link to comment
    elseif ( source == health1 ) or ( source == health2 ) or ( source == health3 ) or ( source == health4 )  then 
    if getElementData( hPlayer, 'Group' ) == groupName then 
    setPedArmor( hPlayer, 200 ) 
    setElementHealth( hPlayer, 100 ) 
    fixVehicle( getPedOccupiedVehicle( hPlayer ) ) 
    addVehicleUpgrade ( element, 1010 ) 
    setVehiclePaintjob ( element, 2 ) 
    end 

الكود ذا شغال معي ممكن تعدل على ذا @

وش تبي اسوي فيه ؟

Link to comment

تحط في حركة حق Fightine Style

لو دخلت لوحة ادمننية تحصل Set stats

ولو دخلت عليه تحصل Fightine Style

ابي اغير حركة الضرب

يعني لو لمست الماركر يتغير حركته

Link to comment
--Server Side 
  
    marker = createMarker (877.19921875,-2098,13.800000190735, "cylinder", 2, 255, 0, 255, 255 ) 
          
    addEventHandler ( "onMarkerHit", marker, 
    function ( hitElement ) 
    if ( hitElement ) == localPlayer then 
    if getElementType ( hitElement ) == "hitElement" then 
    if getElementData( hitElement ,'gang') == '[ARMY]' then 
       setElementHealth ( hitElement, 100 ) 
       setPedArmor ( hitElement, 100 ) 
       setPedSkin ( hitElement, 230 ) 
       setPedFightingStyle ( hitElement, 6 ) 
    else 
       outputChatBox ( "* You most be [ARMY]Group ", hitElement, 0, 0, 255, true ) 
            end 
        end 
    end 
end 
) 
  

جربه ,, ما اتوقع يضبط :roll:

Edited by Guest
Link to comment

local marker = createMarker (877.19921875,-2098,13.800000190735, "cylinder", 2, 255, 0, 255, 255 ) 
    addEventHandler ( "onMarkerHit", root, 
    function ( hitElement ) 
    if ( source == marker ) then 
    if getElementType ( hitElement ) == "player" then 
    if getElementData( hitElement ,'gang') == '[ARMY]' then 
       setElementHealth ( hitElement, 100 ) 
       setPedArmor ( hitElement, 100 ) 
       setPedSkin ( hitElement, 230 ) 
       setPedFightingStyle ( hitElement, 6 ) 
    else 
       outputChatBox ( "* You most be [ARMY]Group ", hitElement, 0, 0, 255, true ) 
                end 
          end 
     end 
end 
) 
  
Edited by Guest
Link to comment
مازبط @
local marker = createMarker (877.19921875,-2098,13.800000190735, "cylinder", 2, 255, 0, 255, 255 ) 
    addEventHandler ( "onMarkerHit", root, 
    function ( hitElement ) 
    if ( source == marker ) then 
    if getElementType ( hitElement ) == "player" then 
    if getElementData( hitElement ,'gang') == '[ARMY]' then 
       setElementHealth ( hitElement, 100 ) 
       setPedArmor ( hitElement, 100 ) 
       setPedSkin ( hitElement, 230 ) 
       setPedFightingStyle ( hitElement, 6 ) 
    else 
       outputChatBox ( "* You most be [ARMY]Group ", hitElement, 0, 0, 255, true ) 
                end 
          end 
     end 
end 
) 
  

جرب ذا عدلت ردي فوق !

Link to comment

مازبط ..

عدل على ذا يمكن يزبط

        elseif ( source == health1 ) or ( source == health2 ) or ( source == health3 ) or ( source == health4 )  then 
        if getElementData( hPlayer, 'Group' ) == groupName then 
        setPedArmor( hPlayer, 200 ) 
        setElementHealth( hPlayer, 100 ) 
        fixVehicle( getPedOccupiedVehicle( hPlayer ) ) 
        addVehicleUpgrade ( element, 1010 ) 
        setVehiclePaintjob ( element, 2 ) 
        end 

Link to comment
مازبط ..

عدل على ذا يمكن يزبط

        elseif ( source == health1 ) or ( source == health2 ) or ( source == health3 ) or ( source == health4 )  then 
        if getElementData( hPlayer, 'Group' ) == groupName then 
        setPedArmor( hPlayer, 200 ) 
        setElementHealth( hPlayer, 100 ) 
        fixVehicle( getPedOccupiedVehicle( hPlayer ) ) 
        addVehicleUpgrade ( element, 1010 ) 
        setVehiclePaintjob ( element, 2 ) 
        end 

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

انت متأكده لانك في قروب اسمه [ARMY] ?

المهم شنو الي مازبط اكتب في اف 8

debugscript 3

وسو رستارت للمود وقل لي وش يقول

Link to comment

انت يمكن مود القروبات عندك مختلف الألمنت داتا جرب ذا

  
marker = createMarker (877.19921875,-2098,13.800000190735, "cylinder", 2, 255, 0, 255, 255 ) 
       
addEventHandler ( "onMarkerHit", marker,function ( hitElement ) 
     if getElementType ( hitElement ) == "player" then 
          if getElementData( hitElement ,'Group') == '[ARMY]' then 
            setElementHealth ( hitElement, 100 ) 
            setPedArmor ( hitElement, 100 ) 
            setPedSkin ( hitElement, 230 ) 
            setPedFightingStyle(hitElement,6) 
          else 
            outputChatBox ( "* You most be [ARMY]Group ", hitElement, 0, 0, 255, true ) 
          end 
     end 
end 
) 

او ذا

  
marker = createMarker (877.19921875,-2098,13.800000190735, "cylinder", 2, 255, 0, 255, 255 ) 
       
addEventHandler ( "onMarkerHit", marker,function ( hitElement ) 
     if getElementType ( hitElement ) == "player" then 
          if getElementData( hitElement ,'gang') == '[ARMY]' then 
            setElementHealth ( hitElement, 100 ) 
            setPedArmor ( hitElement, 100 ) 
            setPedSkin ( hitElement, 230 ) 
            setPedFightingStyle(hitElement,6) 
          else 
            outputChatBox ( "* You most be [ARMY]Group ", hitElement, 0, 0, 255, true ) 
          end 
     end 
end 
) 
  

Link to comment

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...