Jump to content

طلب كود


Recommended Posts

  
marker = createMarker ( ?,?, ?, "cylinder", 1.5, 255, 255, 0, 170 ) 
addEventHandler( "onMarkerHit", marker, 
function (thePlayer) 
setPlayerArmor ( thePlayer, 100) 
setElementHealth (thePlayer,100) 
end 
) 
  

لازم تسوي تحقق للألمنت الي دخل الماركر بالفنكشن

getElementType 

لان لو كان الي دخل الماركر سيارة، بيصير دم السيارة 100 و بتنفجر

setPedArmor الكود الجديد setPlayerArmor الكود قديم

Link to comment
  
marker = createMarker ( ?,?, ?, "cylinder", 1.5, 255, 255, 0, 170 ) 
addEventHandler( "onMarkerHit", marker, 
function (thePlayer) 
setPlayerArmor ( thePlayer, 100) 
setElementHealth (thePlayer,100) 
end 
) 
  

يَ حول آلله ,

خله يحآول ! :(

Link to comment

لازم تسوي تحقق للألمنت الي دخل الماركر بالفنكشن

getElementType 

لان لو كان الي دخل الماركر سيارة، بيصير دم السيارة 100 و بتنفجر

setPedArmor الكود الجديد setPlayerArmor الكود قديم

' طيب يصير كذا '

  
marker = createMarker ( ?,?, ?, "cylinder", 1.5, 255, 255, 0, 170 ) 
addEventHandler( "onMarkerHit", marker, 
if getElementType ( thePlayer ) == "marker" then 
function (thePlayer) 
setPedArmor ( thePlayer, 100) 
setElementHealth (thePlayer,100) 
end 
) 

Link to comment

لازم تسوي تحقق للألمنت الي دخل الماركر بالفنكشن

getElementType 

لان لو كان الي دخل الماركر سيارة، بيصير دم السيارة 100 و بتنفجر

setPedArmor الكود الجديد setPlayerArmor الكود قديم

' طيب يصير كذا '

  
marker = createMarker ( ?,?, ?, "cylinder", 1.5, 255, 255, 0, 170 ) 
addEventHandler( "onMarkerHit", marker, 
if getElementType ( thePlayer ) == "marker" then 
function (thePlayer) 
setPedArmor ( thePlayer, 100) 
setElementHealth (thePlayer,100) 
end 
) 

marker ?? > player

Link to comment

لازم تسوي تحقق للألمنت الي دخل الماركر بالفنكشن

getElementType 

لان لو كان الي دخل الماركر سيارة، بيصير دم السيارة 100 و بتنفجر

setPedArmor الكود الجديد setPlayerArmor الكود قديم

' طيب يصير كذا '

  
marker = createMarker ( ?,?, ?, "cylinder", 1.5, 255, 255, 0, 170 ) 
addEventHandler( "onMarkerHit", marker, 
if getElementType ( thePlayer ) == "marker" then 
function (thePlayer) 
setPedArmor ( thePlayer, 100) 
setElementHealth (thePlayer,100) 
end 
) 

  
marker = createMarker ( x, y, z, "cylinder", 1.5, 255, 255, 0, 170 ) 
addEventHandler( "onMarkerHit", marker,function (thePlayer) 
if getElementType ( thePlayer ) == "player" then 
setPedArmor ( thePlayer, 100) 
setElementHealth (thePlayer,100) 
    end 
end 
) 

[/b]

Edited by Guest
Link to comment

تصلح الفكره في طريقتك

بس المفروض انك تخليه يتأكد ان الي دخل الماركر هو اللاعب مو يتأكد ان الي دخل الماركر هو ماركر

والفنكشن المفروض بعد الحدث

marker = createMarker ( x, y, z, "cylinder", 1.5, 255, 255, 0, 170 ) 
addEventHandler( "onMarkerHit", marker,function (thePlayer) 
if getElementType ( thePlayer ) == "marker" then 
setPedArmor ( thePlayer, 100) 
setElementHealth (thePlayer,100) 
    end 
end 
) 

طيب الكود ما ظبط

Edited by Guest
Link to comment
yazan = createMarker ( 1.3,1.2, 1.1, "cylinder", 1.5, 255, 255, 0, 170 ) 
  
addEventHandler ( "onClientMarkerHit", yazan, 
 function ( hitElement ) 
getElementType ( hitElement ) == "player" ) then 
setPedArmor ( player, 100) 
setElementHealth (player,100) 
    end 
end 
) 

Edited by Guest
Link to comment

marker = createMarker ( x, y, z, "cylinder", 1.5, 255, 255, 0, 170 ) 
addEventHandler( "onMarkerHit", marker, 
function (player) 
if (getElementType(player) == ("player")) then 
setPedArmor (player, 100) 
setElementHealth (player,100) 
   end 
end 
) 
  

ججربهـ ,

type = server ! :|

Link to comment
yazan = createMarker ( 1.3,1.2, 1.1, "cylinder", 1.5, 255, 255, 0, 170 ) 
  
addEventHandler ( "onClientMarkerHit", yazan, 
 function ( hitElement ) 
getElementType ( hitElement ) == "player" ) then 
setPedArmor ( player, 100) 
setElementHealth (player,100) 
    end 
end 
) 

وين آلششرط سسططر 3 ؟ !

Link to comment
marker = createMarker ( x, y, z, "cylinder", 1.5, 255, 255, 0, 170 ) 
addEventHandler( "onMarkerHit", marker, 
function (player) 
if (getElementType(player) == ("player")) then 
setPedArmor (player, 100) 
setElementHealth (player,100) 
   end 
end 
) 
  

ججربهـ ,

type = server ! :|

مشكور لبى قلبك :$ا

Link to comment

تصلح الفكره في طريقتك

بس المفروض انك تخليه يتأكد ان الي دخل الماركر هو اللاعب مو يتأكد ان الي دخل الماركر هو ماركر

والفنكشن المفروض بعد الحدث

marker = createMarker ( x, y, z, "cylinder", 1.5, 255, 255, 0, 170 ) 
addEventHandler( "onMarkerHit", marker,function (thePlayer) 
if getElementType ( thePlayer ) == "marker" then 
setPedArmor ( thePlayer, 100) 
setElementHealth (thePlayer,100) 
    end 
end 
) 

طيب الكود ما ظبط

آسف مستعجل كنت

  
marker = createMarker ( x, y, z, "cylinder", 1.5, 255, 255, 0, 170 ) 
addEventHandler( "onMarkerHit", marker,function (thePlayer) 
if getElementType ( thePlayer ) == "player" then 
setPedArmor ( thePlayer, 100) 
setElementHealth (thePlayer,100) 
    end 
end 
) 
Link to comment

الجدول احسن لو تبي تحط اكثر من ماركر .... 8)

Markers = { 
    [1] = { 2306.02466, 2445.57080, 10.8203 }, 
} 
  
addEventHandler ( "onResourceStart", resourceRoot, 
    function ( ) 
        for _, TheMarkers in ipairs ( Markers ) do 
            TheMarker = createMarker ( TheMarkers[1], TheMarkers[2], TheMarkers[3] - 1, "cylinder", 2, 25, 205, 100, 150 ) 
        end 
    end 
) 
  
addEventHandler( "onMarkerHit", resourceRoot, 
function (player) 
if (getElementType(player) == ("player")) then 
setPedArmor (player, 100) 
setElementHealth (player,200) 
   end 
end 
) 
  

Link to comment
الجدول احسن لو تبي تحط اكثر من ماركر .... 8)
Markers = { 
    [1] = { 2306.02466, 2445.57080, 10.8203 }, 
} 
  
addEventHandler ( "onResourceStart", resourceRoot, 
    function ( ) 
        for _, TheMarkers in ipairs ( Markers ) do 
            TheMarker = createMarker ( TheMarkers[1], TheMarkers[2], TheMarkers[3] - 1, "cylinder", 2, 25, 205, 100, 150 ) 
        end 
    end 
) 
  
addEventHandler( "onMarkerHit", resourceRoot, 
function (player) 
if (getElementType(player) == ("player")) then 
setPedArmor (player, 100) 
setElementHealth (player,200) 
   end 
end 
) 
  

جرب

  
Markers = { 
    [1] = { 2306.02466, 2445.57080, 10.8203 }, 
} 
  
addEventHandler ( "onResourceStart", resourceRoot, 
    function ( ) 
        for _, TheMarkers in ipairs ( Markers ) do 
            TheMarker = createMarker ( TheMarkers[1], TheMarkers[2], TheMarkers[3] - 1, "cylinder", 2, 25, 205, 100, 150 ) 
        end 
    end 
) 
  
addEventHandler( "onMarkerHit", TheMarker, 
function (player) 
if (getElementType(player) == ("player")) then 
setPedArmor (player, 100) 
setElementHealth (player,200) 
   end 
end 
) 
  
Link to comment
الجدول احسن لو تبي تحط اكثر من ماركر .... 8)
Markers = { 
    [1] = { 2306.02466, 2445.57080, 10.8203 }, 
} 
  
addEventHandler ( "onResourceStart", resourceRoot, 
    function ( ) 
        for _, TheMarkers in ipairs ( Markers ) do 
            TheMarker = createMarker ( TheMarkers[1], TheMarkers[2], TheMarkers[3] - 1, "cylinder", 2, 25, 205, 100, 150 ) 
        end 
    end 
) 
  
addEventHandler( "onMarkerHit", resourceRoot, 
function (player) 
if (getElementType(player) == ("player")) then 
setPedArmor (player, 100) 
setElementHealth (player,200) 
   end 
end 
) 
  

جرب

  
Markers = { 
    [1] = { 2306.02466, 2445.57080, 10.8203 }, 
} 
  
addEventHandler ( "onResourceStart", resourceRoot, 
    function ( ) 
        for _, TheMarkers in ipairs ( Markers ) do 
            TheMarker = createMarker ( TheMarkers[1], TheMarkers[2], TheMarkers[3] - 1, "cylinder", 2, 25, 205, 100, 150 ) 
        end 
    end 
) 
  
addEventHandler( "onMarkerHit", TheMarker, 
function (player) 
if (getElementType(player) == ("player")) then 
setPedArmor (player, 100) 
setElementHealth (player,200) 
   end 
end 
) 
  

مشكور يا داوي , بس كودي شغال :$ا

Link to comment

addEventHandler( "onMarkerHit", resourceRoot, 

^

ههنآ آلخططأ ,

بس مآ آدري آحس آن عندكـ خطأ بآلسطر يلي فيه createMarker

تسوي آلإحدآثيآت بآلجدول آففضل ولآ مآ آدري كيفف ..

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