Jump to content

تعديل على الكود ضروري


Recommended Posts

سلام عليكم

شباب

انا عندي كود حق الدم ودرع وشخصيه لي قروب معين

ابي اخليه لي تيم

+

يكون لي قروبين

مع بعض

يعني الدم ودرع يقدرو يخذوهم الثنين

الكود ذا

  
marker1 = createMarker (-2416.55371,-603.77325,131.56250, "cylinder", 2, 244 , 87, 10, 255 ) 
  
      
addEventHandler ( "onMarkerHit", marker1, 
function ( player ) 
if getElementType ( player ) == "player" then 
if getElementData( player ,'Group') == 'max' then 
   setElementHealth ( player, 100 ) 
   setPedArmor ( player, 100 ) 
   setPedSkin ( player, 230 ) 
   else 
   outputChatBox ( "(max)يجب ان تكون بي عصابة", player, 244 , 87, 10, true ) 
end 
end 
end 
, false ) 
  

يريت تسعدوني

Link to comment
    marker1 = createMarker (-2416.55371,-603.77325,131.56250, "cylinder", 2, 244 , 87, 10, 255 ) 
      
          
    addEventHandler ( "onMarkerHit", marker1, 
    function ( player ) 
    if getElementType ( player ) == "player" then 
    if getPlayerTeam( player ,'Group') == 'max' then 
       setElementHealth ( player, 100 ) 
       setPedArmor ( player, 100 ) 
       setPedSkin ( player, 230 ) 
       else 
       outputChatBox ( "(max)يجب ان تكون بي عصابة", player, 244 , 87, 10, true ) 
    end 
    end 
    end 
    , false ) 

جرب كذا ولله اعلم اذا يشتغل مو مجرب

Link to comment

@ # AbO ,EkSiaT

سطر 7 هو يبي من مود القروبات مو تيم

   marker1 = createMarker (-2416.55371,-603.77325,131.56250, "cylinder", 2, 244 , 87, 10, 255 ) 
      
          
    addEventHandler ( "onMarkerHit", marker1, 
    function ( element ) 
    if getElementType ( element ) == "player" then 
    if getElementData( element ,'Group') == "max" then 
       setElementHealth ( element, 100 ) 
       setPedArmor ( element, 100 ) 
       setElementModel ( element, 230 ) 
       else 
       outputChatBox ( "(max)يجب ان تكون بي عصابة",element, 244 , 87, 10, true ) 
    end 
    end 
    end 
 ) 
  

Link to comment
@ # AbO ,EkSiaT

سطر 7 هو يبي من مود القروبات مو تيم

   marker1 = createMarker (-2416.55371,-603.77325,131.56250, "cylinder", 2, 244 , 87, 10, 255 ) 
      
          
    addEventHandler ( "onMarkerHit", marker1, 
    function ( element ) 
    if getElementType ( element ) == "player" then 
    if getElementData( element ,'Group') == "max" then 
       setElementHealth ( element, 100 ) 
       setPedArmor ( element, 100 ) 
       setElementModel ( element, 230 ) 
       else 
       outputChatBox ( "(max)يجب ان تكون بي عصابة",element, 244 , 87, 10, true ) 
    end 
    end 
    end 
 ) 
  

طيب كيف اعدل عليه علمني لو سمحت

Link to comment

أنا ما فهت عليك أنت تحب يكون فيه 2 group try to use

or 

local marker1 = createMarker (-2416.55371,-603.77325,131.56250, "cylinder", 2, 244 , 87, 10, 255 ) 
             
addEventHandler ( "onMarkerHit", marker1, 
    function (element,matchingDimension) 
    if (matchingDimension and isElement(element) and getElementType ( element ) == "player") then 
    local group = getElementData( element ,'Group')  
        if (group == "max") or (group == "الثاني") then 
            setElementHealth ( element, 100 ) 
            setPedArmor ( element, 100 ) 
            setElementModel ( element, 230 ) 
            else 
            outputChatBox ( "(max)يجب ان تكون بي عصابة",element, 244 , 87, 10, true ) 
            end 
        end 
    end 
 ) 

Link to comment
أنا ما فهت عليك أنت تحب يكون فيه 2 group try to use
or 

local marker1 = createMarker (-2416.55371,-603.77325,131.56250, "cylinder", 2, 244 , 87, 10, 255 ) 
             
addEventHandler ( "onMarkerHit", marker1, 
    function (element,matchingDimension) 
    if (matchingDimension and isElement(element) and getElementType ( element ) == "player") then 
    local group = getElementData( element ,'Group')  
        if (group == "max") or (group == "الثاني") then 
            setElementHealth ( element, 100 ) 
            setPedArmor ( element, 100 ) 
            setElementModel ( element, 230 ) 
            else 
            outputChatBox ( "(max)يجب ان تكون بي عصابة",element, 244 , 87, 10, true ) 
            end 
        end 
    end 
 ) 

مشكور يا حب

بس كيف اخليه كمان لي تيم معين

Link to comment
هكذا
local team = getPlayerTeam(element) 
    if team then  
        if getTeamName(team == " الإسم") then  
             
        -- your code here 
             
    end  
end  

local team = getPlayerTeam(element) 
    if team then 
        if getTeamName(team) == "الإسم" then 
            
        -- your code here 
            
    end 
end 

Link to comment
هكذا
local team = getPlayerTeam(element) 
    if team then  
        if getTeamName(team == " الإسم") then  
             
        -- your code here 
             
    end  
end  

يا غالي يعني الكود بسير كذا

  
  
local team = getPlayerTeam(element) 
    if team then  
        if getTeamName(team == " الإسم") then  
             
        -- your code here 
             
    end  
end 
  
  
local marker1 = createMarker (-2416.55371,-603.77325,131.56250, "cylinder", 2, 244 , 87, 10, 255 ) 
            
addEventHandler ( "onMarkerHit", marker1, 
    function (element,matchingDimension) 
    if (matchingDimension and isElement(element) and getElementType ( element ) == "player") then 
    local group = getElementData( element ,'Group') 
        if (group == "max") or (group == "الثاني") then 
            setElementHealth ( element, 100 ) 
            setPedArmor ( element, 100 ) 
            setElementModel ( element, 230 ) 
            else 
            outputChatBox ( "(max)يجب ان تكون بي عصابة",element, 244 , 87, 10, true ) 
            end 
        end 
    end 
 ) 
  

؟؟؟؟

Link to comment
هكذا
local team = getPlayerTeam(element) 
    if team then  
        if getTeamName(team == " الإسم") then  
             
        -- your code here 
             
    end  
end  

يا غالي يعني الكود بسير كذا

  
  
local team = getPlayerTeam(element) 
    if team then  
        if getTeamName(team == " الإسم") then  
             
        -- your code here 
             
    end  
end 
  
  
local marker1 = createMarker (-2416.55371,-603.77325,131.56250, "cylinder", 2, 244 , 87, 10, 255 ) 
            
addEventHandler ( "onMarkerHit", marker1, 
    function (element,matchingDimension) 
    if (matchingDimension and isElement(element) and getElementType ( element ) == "player") then 
    local group = getElementData( element ,'Group') 
        if (group == "max") or (group == "الثاني") then 
            setElementHealth ( element, 100 ) 
            setPedArmor ( element, 100 ) 
            setElementModel ( element, 230 ) 
            else 
            outputChatBox ( "(max)يجب ان تكون بي عصابة",element, 244 , 87, 10, true ) 
            end 
        end 
    end 
 ) 
  

؟؟؟؟

لا :mrgreen:

Link to comment
هكذا
local team = getPlayerTeam(element) 
    if team then  
        if getTeamName(team == " الإسم") then  
             
        -- your code here 
             
    end  
end  

يا غالي يعني الكود بسير كذا

  
  
local team = getPlayerTeam(element) 
    if team then  
        if getTeamName(team == " الإسم") then  
             
        -- your code here 
             
    end  
end 
  
  
local marker1 = createMarker (-2416.55371,-603.77325,131.56250, "cylinder", 2, 244 , 87, 10, 255 ) 
            
addEventHandler ( "onMarkerHit", marker1, 
    function (element,matchingDimension) 
    if (matchingDimension and isElement(element) and getElementType ( element ) == "player") then 
    local group = getElementData( element ,'Group') 
        if (group == "max") or (group == "الثاني") then 
            setElementHealth ( element, 100 ) 
            setPedArmor ( element, 100 ) 
            setElementModel ( element, 230 ) 
            else 
            outputChatBox ( "(max)يجب ان تكون بي عصابة",element, 244 , 87, 10, true ) 
            end 
        end 
    end 
 ) 
  

؟؟؟؟

لا :mrgreen:

طيب كيف يسير؟

Link to comment
marker1 = createMarker (-2416.55371,-603.77325,131.56250, "cylinder", 2, 244 , 87, 10, 255 ) 
  
addEventHandler ( "onMarkerHit", marker1, 
    function ( player ) 
      local team = getPlayerTeam(element) 
       if team then 
        if getTeamName(team == "max") then 
       setElementHealth ( player, 100 ) 
       setPedArmor ( player, 100 ) 
       setPedSkin ( player, 230 ) 
       else 
       outputChatBox ( "يجب ان تكون في فريق Max", player, 244 , 87, 10, true ) 
         end   
    end 
end 
) 

جرب كذا والله اعلم ~ برب مشوار

Link to comment
marker1 = createMarker (-2416.55371,-603.77325,131.56250, "cylinder", 2, 244 , 87, 10, 255 ) 
  
addEventHandler ( "onMarkerHit", marker1, 
    function ( player ) 
      local team = getPlayerTeam(element) 
       if team then 
        if getTeamName(team == "max") then 
       setElementHealth ( player, 100 ) 
       setPedArmor ( player, 100 ) 
       setPedSkin ( player, 230 ) 
       else 
       outputChatBox ( "يجب ان تكون في فريق Max", player, 244 , 87, 10, true ) 
         end   
    end 
end 
) 

جرب كذا والله اعلم ~ برب مشوار

replace element with player here

82a0d78ade.png

Link to comment
marker1 = createMarker (-2416.55371,-603.77325,131.56250, "cylinder", 2, 244 , 87, 10, 255 ) 
  
addEventHandler ( "onMarkerHit", marker1, function ( player ) 
      local team = getPlayerTeam(player) 
       if team then 
        if getTeamName(team == "max") then 
       setElementHealth ( player, 100 ) 
       setPedArmor ( player, 100 ) 
       setPedSkin ( player, 230 ) 
       else 
       outputChatBox ( "يجب ان تكون في فريق Max", player, 244 , 87, 10, true ) 
         end   
    end 
end) 

Link to comment

Work 100%

marker1 = createMarker (1130.7760009766,-870.98834228516,42.390625, "cylinder", 2, 244 , 87, 10, 255 ) 
  
addEventHandler ( "onMarkerHit", marker1, function ( player ) 
    local team = getPlayerTeam( player ) 
        if team then 
    if getTeamName(team) == "max" then 
        setElementHealth ( player, 100 ) 
        setPedArmor ( player, 100 ) 
        setPedSkin ( player, 230 ) 
    else 
        outputChatBox ( "يجب ان تكون في فريق Max", player, 244 , 87, 10, true ) 
            end   
        end 
    end  
) 

Link to comment
Work 100%
marker1 = createMarker (1130.7760009766,-870.98834228516,42.390625, "cylinder", 2, 244 , 87, 10, 255 ) 
  
addEventHandler ( "onMarkerHit", marker1, function ( player ) 
    local team = getPlayerTeam( player ) 
        if team then 
    if getTeamName(team) == "max" then 
        setElementHealth ( player, 100 ) 
        setPedArmor ( player, 100 ) 
        setPedSkin ( player, 230 ) 
    else 
        outputChatBox ( "يجب ان تكون في فريق Max", player, 244 , 87, 10, true ) 
            end   
        end 
    end  
) 

طيب وين مكان حق التيم

يعني وين احدد التيم الي ابيه

Link to comment
Work 100%
marker1 = createMarker (1130.7760009766,-870.98834228516,42.390625, "cylinder", 2, 244 , 87, 10, 255 ) 
  
addEventHandler ( "onMarkerHit", marker1, function ( player ) 
    local team = getPlayerTeam( player ) 
        if team then 
    if getTeamName(team) == "max" then 
        setElementHealth ( player, 100 ) 
        setPedArmor ( player, 100 ) 
        setPedSkin ( player, 230 ) 
    else 
        outputChatBox ( "يجب ان تكون في فريق Max", player, 244 , 87, 10, true ) 
            end   
        end 
    end  
) 

طيب وين مكان حق التيم

يعني وين احدد التيم الي ابيه

كلمة (max) سطر 6

وسطر 11 (الكلام الي بيطلع ف الشات اذا مو في التيم المطلوب)

Link to comment
local marker1 = createMarker (-2416.55371,-603.77325,131.56250, "cylinder", 2, 244 , 87, 10, 255 ) 
            
addEventHandler ( "onMarkerHit", marker1, 
    function (element,matchingDimension) 
    if (matchingDimension and isElement(element) and getElementType ( element ) == "player") then 
local team = getPlayerTeam(element) 
    if team then 
        if getTeamName(team == " اسم التيم") then 
    local group = getElementData( element ,'Group') 
        if (group == "القروب الاول") or (group == "القروب الثاني") then 
            setElementHealth ( element, 100 ) 
            setPedArmor ( element, 100 ) 
            setElementModel ( element, 230 ) 
  
            end 
            else 
            outputChatBox ( "(max)يجب ان تكون بي عصابة",element, 244 , 87, 10, true ) 
        end 
    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...