Jump to content

بس انا اشوف البيد


Recommended Posts

  • Replies 57
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

addEvent("Ped",true) 
addEventHandler("Ped",root, 
function() 
if isElement( ped ) then 
destroyElement(ped) 
ped = nil 
ped = createPed ( 120, 1566.41735, -1259.45605, 277.8813, 160 ); 
     end 
end) 

addEvent("Ped",true) 
addEventHandler("Ped",root, 
function() 
if isElement( ped ) then 
destroyElement(ped) 
ped = nil 
end 
ped = createPed ( 120, 1566.41735, -1259.45605, 277.8813, 160 ); 
end) 

Link to comment

peds = { 
{id,x,y,z,rot}, 
{id,x,y,z,rot}, 
{id,x,y,z,rot}, 
{id,x,y,z,rot}, 
{id,x,y,z,rot}, 
{id,x,y,z,rot}, 
{id,x,y,z,rot}, 
{id,x,y,z,rot} 
} 
  
  
addEvent("Ped",true) 
addEventHandler("Ped",root, 
function() 
    if isElement( Ped ) then 
    destroyElement(Ped) 
    Ped = nil 
    end 
    for k,v in ipairs ( peds ) do 
    Ped = createPed(v[1],v[2],v[3],v[4],v[5]) 
    end 
end 
) 
     
  
Link to comment
peds = { 
{id,x,y,z,rot}, 
{id,x,y,z,rot}, 
{id,x,y,z,rot}, 
{id,x,y,z,rot}, 
{id,x,y,z,rot}, 
{id,x,y,z,rot}, 
{id,x,y,z,rot}, 
{id,x,y,z,rot} 
} 
  
  
addEvent("Ped",true) 
addEventHandler("Ped",root, 
function() 
    if isElement( Ped ) then 
    destroyElement(Ped) 
    Ped = nil 
    end 
    for k,v in ipairs ( peds ) do 
    Ped = createPed(v[1],v[2],v[3],v[4],v[5]) 
    end 
end 
) 
     
  

الجدول في 8 بيد

وانت حاط تحت لين5

مو المفروض يكون لين 8 ؟

Link to comment
متأكد؟ :| جربتة مايكرر :/
peds = { 
{120, 1566.41735, -1259.45605, 277.8813, 160}, 
{17, 1555.38732, -1256.55517, 277.88281, 160}, 
{120, 1562.02270, -1257.09252, 277.88055, 160}, 
{120, 1567.18994, -1257.94104, 277.88076, 160}, 
{120, 1567.26599, -1227.53027, 277.87860, 160}, 
{120, 1573.79064, -1230.17395, 277.87701, 160}, 
{120, 1580.79064, -1230.18395, 277.87701, 160}, 
{120, 1500.40454, -1224.24951, 277.87976, 160} 
} 
  
  
addEvent("Ped",true) 
addEventHandler("Ped",root, 
function() 
    if isElement( Ped ) then 
    destroyElement(Ped) 
    Ped = nil 
    end 
    for k,v in ipairs ( peds ) do 
    Ped = createPed(v[1],v[2],v[3],v[4],v[5]) 
    end 
end 
) 

مجربه 100%

يتكرر

Link to comment

^ انت ما راح تشوفه يتكرر الا اذا ضربته

+ هذا الكود ,

local Marker = createMarker ( 1544.29223, -1354.51025, 328.47225, "cylinder",5, 255, 255, 255, 170 ); 
function Hit(player) 
    if ( getElementType(player) == "player" ) then 
    triggerClientEvent(player,"Ped",player) 
    end 
end 
addEventHandler("onMarkerHit",Marker,Hit) 

Link to comment
شغال جربتة ضربت البيد ولمست اكثر من مرة الماركر -_-؟

غريبةة !!!

عندي يتكرر والله,,

+

لو سويت جدول ماركرات كذآ يشتغل ؟

Markers = { 
{902.95196,-3810.00244,-0.55000, "checkpoint",5, 0, 255, 0, 170 }, 
{836.29919,-3749.23046,-0.55000, "checkpoint",5, 0, 0, 255, 170}, 
{708.62615,-3855.13085,-0.55000, "checkpoint",5, 255, 0, 0, 170}, 
{993.61877,-3796.88793,10.31985, "ring",6, 0, 255, 0, 170}, 
{1131.90075,-3832.30273,7.55000, "ring",6, 255, 255, 0, 170}, 
{1187.44982,-3777.85327,7.55000, "ring",6, 0, 255, 0, 170} 
} 

Link to comment
سوي البيد سيرفر وإستخدم
setElementVisibleTo 

This function can change an element's visibility. This does not work with all entities - vehicles, players and objects are exempt. This is because these objects are required for accurate sync (they're physical objects).

local Marker = createMarker ( 1544.29223, -1354.51025, 328.47225, "cylinder",5, 255, 255, 255, 170 ); 
function Hit(player) 
    if ( getElementType(player) == "player" ) then 
        triggerClientEvent(player,"Ped",player) 
    end 
end 
addEventHandler("onMarkerHit",Marker,Hit) 

peds = { 
{120, 1566.41735, -1259.45605, 277.8813, 160}, 
{17, 1555.38732, -1256.55517, 277.88281, 160}, 
{120, 1562.02270, -1257.09252, 277.88055, 160}, 
{120, 1567.18994, -1257.94104, 277.88076, 160}, 
{120, 1567.26599, -1227.53027, 277.87860, 160}, 
{120, 1573.79064, -1230.17395, 277.87701, 160}, 
{120, 1580.79064, -1230.18395, 277.87701, 160}, 
{120, 1500.40454, -1224.24951, 277.87976, 160} 
} 
  
  
addEvent("Ped",true) 
addEventHandler("Ped",root, 
function() 
    for k,v in ipairs ( getElementsByType("ped",resourceRoot) ) do destroyElement(v) end 
    for k,v in ipairs ( peds ) do 
        createPed(v[1],v[2],v[3],v[4],v[5]) 
    end 
end) 

Edited by Guest
Link to comment
سوي البيد سيرفر وإستخدم
setElementVisibleTo 

This function can change an element's visibility. This does not work with all entities - vehicles, players and objects are exempt. This is because these objects are required for accurate sync (they're physical objects).

local Marker = createMarker ( 1544.29223, -1354.51025, 328.47225, "cylinder",5, 255, 255, 255, 170 ); 
function Hit(player) 
    if ( getElementType(player) == "player" ) then 
    triggerClientEvent(player,"Ped",player) 
    end 
end 
addEventHandler("onMarkerHit",Marker,Hit) 

peds = { 
{120, 1566.41735, -1259.45605, 277.8813, 160}, 
{17, 1555.38732, -1256.55517, 277.88281, 160}, 
{120, 1562.02270, -1257.09252, 277.88055, 160}, 
{120, 1567.18994, -1257.94104, 277.88076, 160}, 
{120, 1567.26599, -1227.53027, 277.87860, 160}, 
{120, 1573.79064, -1230.17395, 277.87701, 160}, 
{120, 1580.79064, -1230.18395, 277.87701, 160}, 
{120, 1500.40454, -1224.24951, 277.87976, 160} 
} 
  
  
addEvent("Ped",true) 
addEventHandler("Ped",root, 
function() 
    for k,v in ipairs ( getElementsByType("ped",resourceRoot) ) do destroyElement(v) end 
        for k,v in ipairs ( peds ) do 
        createPed(v[1],v[2],v[3],v[4],v[5]) 
    end 
end) 

تسلم لـ التعديل بس الغريب انة مابين انة يتكرر الا لمآ ذبحت

بيد وطلع ورآهـ 10 تسلم ,

Link to comment
سوي البيد سيرفر وإستخدم
setElementVisibleTo 

This function can change an element's visibility. This does not work with all entities - vehicles, players and objects are exempt. This is because these objects are required for accurate sync (they're physical objects).

local Marker = createMarker ( 1544.29223, -1354.51025, 328.47225, "cylinder",5, 255, 255, 255, 170 ); 
function Hit(player) 
    if ( getElementType(player) == "player" ) then 
        triggerClientEvent(player,"Ped",player) 
    end 
end 
addEventHandler("onMarkerHit",Marker,Hit) 

peds = { 
{120, 1566.41735, -1259.45605, 277.8813, 160}, 
{17, 1555.38732, -1256.55517, 277.88281, 160}, 
{120, 1562.02270, -1257.09252, 277.88055, 160}, 
{120, 1567.18994, -1257.94104, 277.88076, 160}, 
{120, 1567.26599, -1227.53027, 277.87860, 160}, 
{120, 1573.79064, -1230.17395, 277.87701, 160}, 
{120, 1580.79064, -1230.18395, 277.87701, 160}, 
{120, 1500.40454, -1224.24951, 277.87976, 160} 
} 
  
  
addEvent("Ped",true) 
addEventHandler("Ped",root, 
function() 
    for k,v in ipairs ( getElementsByType("ped",resourceRoot) ) do destroyElement(v) end 
    for k,v in ipairs ( peds ) do 
        createPed(v[1],v[2],v[3],v[4],v[5]) 
    end 
end) 

يعطيك الف الف عآفيههه,,

+ جدول الماركرات كيف .؟ ^

Link to comment
Markers = { 
{902.95196,-3810.00244,-0.55000, "checkpoint",5, 0, 255, 0, 170 }, 
{836.29919,-3749.23046,-0.55000, "checkpoint",5, 0, 0, 255, 170}, 
{708.62615,-3855.13085,-0.55000, "checkpoint",5, 255, 0, 0, 170}, 
{993.61877,-3796.88793,10.31985, "ring",6, 0, 255, 0, 170}, 
{1131.90075,-3832.30273,7.55000, "ring",6, 255, 255, 0, 170}, 
{1187.44982,-3777.85327,7.55000, "ring",6, 0, 255, 0, 170} 
} 
  
for _,v in ipairs ( Markers ) do  
-- CreateMarker 
end 

Link to comment

اخوي بريستيج، الخطأ الي انت مسويه

ان جميع البيدات خزنتها في متغير واحد الي هو

Ped 

انت لما تسوي بيد جديد وتخزنه في نفس المتغير، البيد الي قبله يروح من المتغير

بمعنا اخر، ان المتغير

Ped 

راح يكون هو صاحب اخر احداثيات من الجدول

peds ={} 

بالتحديد راح يكون اخر واحد الي هو

{120, 1500.40454, -1224.24951, 277.87976, 160} 

لو تجرب تحذف، راح تشوف ان البيد الي ينحذف هو صاحب هذي الاحداثيات لان هو الي يمثل المتغير

Ped 

Link to comment
Markers = { 
{902.95196,-3810.00244,-0.55000, "checkpoint",5, 0, 255, 0, 170 }, 
{836.29919,-3749.23046,-0.55000, "checkpoint",5, 0, 0, 255, 170}, 
{708.62615,-3855.13085,-0.55000, "checkpoint",5, 255, 0, 0, 170}, 
{993.61877,-3796.88793,10.31985, "ring",6, 0, 255, 0, 170}, 
{1131.90075,-3832.30273,7.55000, "ring",6, 255, 255, 0, 170}, 
{1187.44982,-3777.85327,7.55000, "ring",6, 0, 255, 0, 170} 
} 
  
for _,v in ipairs ( Markers ) do  
-- CreateMarker 
end 

طيب آقدر آحدد عنصر وآحد من الجدول ؟

يعني لو افترضنآ انه جدول البيد,,

يمديني احدد بيد واحد اخليه يكون معه سيارة آو...الخ

Link to comment

لم يتم التجربة

Markers = { 
    ["1"] = {902.95196,-3810.00244,-0.55000, "checkpoint",5, 0, 255, 0, 170 }, 
    ["2"] = {836.29919,-3749.23046,-0.55000, "checkpoint",5, 0, 0, 255, 170}, 
    ["3"] = {708.62615,-3855.13085,-0.55000, "checkpoint",5, 255, 0, 0, 170}, 
    ["4"] = {993.61877,-3796.88793,10.31985, "ring",6, 0, 255, 0, 170}, 
    ["5"] = {1131.90075,-3832.30273,7.55000, "ring",6, 255, 255, 0, 170}, 
    ["6"] = {1187.44982,-3777.85327,7.55000, "ring",6, 0, 255, 0, 170} 
} 
      
createMarker ( Markers["1"] [1], Markers["1"] [2], Markers["1"] [3], Markers["1"] [4], Markers["1"] [5], Markers["1"] [6], Markers["1"] [7], Markers["1"] [8], Markers["1"] [9] )  

Link to comment
لم يتم التجربة
Markers = { 
    ["1"] = {902.95196,-3810.00244,-0.55000, "checkpoint",5, 0, 255, 0, 170 }, 
    ["2"] = {836.29919,-3749.23046,-0.55000, "checkpoint",5, 0, 0, 255, 170}, 
    ["3"] = {708.62615,-3855.13085,-0.55000, "checkpoint",5, 255, 0, 0, 170}, 
    ["4"] = {993.61877,-3796.88793,10.31985, "ring",6, 0, 255, 0, 170}, 
    ["5"] = {1131.90075,-3832.30273,7.55000, "ring",6, 255, 255, 0, 170}, 
    ["6"] = {1187.44982,-3777.85327,7.55000, "ring",6, 0, 255, 0, 170} 
} 
      
createMarker ( Markers["1"] [1], Markers["1"] [2], Markers["1"] [3], Markers["1"] [4], Markers["1"] [5], Markers["1"] [6], Markers["1"] [7], Markers["1"] [8], Markers["1"] [9] )  

local Markers = { 
    {902.95196,-3810.00244,-0.55000, "checkpoint",5, 0, 255, 0, 170 }, 
    {836.29919,-3749.23046,-0.55000, "checkpoint",5, 0, 0, 255, 170}, 
    {708.62615,-3855.13085,-0.55000, "checkpoint",5, 255, 0, 0, 170}, 
    {993.61877,-3796.88793,10.31985, "ring",6, 0, 255, 0, 170}, 
    {1131.90075,-3832.30273,7.55000, "ring",6, 255, 255, 0, 170}, 
    {1187.44982,-3777.85327,7.55000, "ring",6, 0, 255, 0, 170} 
} 
for i,v in pairs(Markers) do 
    createMarker(unpack(i)) 
end 

Link to comment
local Markers = { 
    {902.95196,-3810.00244,-0.55000, "checkpoint",5, 0, 255, 0, 170 }, 
    {836.29919,-3749.23046,-0.55000, "checkpoint",5, 0, 0, 255, 170}, 
    {708.62615,-3855.13085,-0.55000, "checkpoint",5, 255, 0, 0, 170}, 
    {993.61877,-3796.88793,10.31985, "ring",6, 0, 255, 0, 170}, 
    {1131.90075,-3832.30273,7.55000, "ring",6, 255, 255, 0, 170}, 
    {1187.44982,-3777.85327,7.55000, "ring",6, 0, 255, 0, 170} 
} 
for i,v in pairs(Markers) do 
    createMarker(unpack(i)) 
end 

طيب آقدر آحدد عنصر وآحد من الجدول ؟

يعني لو افترضنآ انه جدول البيد,,

يمديني احدد بيد واحد اخليه يكون معه سيارة آو...الخ

واعتقد يمدي بالطريقة هذي

Markers = { 
    ["1"] = createMarker ( 902.95196,-3810.00244,-0.55000, "checkpoint",5, 0, 255, 0, 170 ), 
    ["2"] = createMarker ( 836.29919,-3749.23046,-0.55000, "checkpoint",5, 0, 0, 255, 170 ), 
    ["3"] = createMarker ( 708.62615,-3855.13085,-0.55000, "checkpoint",5, 255, 0, 0, 170 ), 
    ["4"] = createMarker ( 993.61877,-3796.88793,10.31985, "ring",6, 0, 255, 0, 170 ), 
    ["5"] = createMarker ( 1131.90075,-3832.30273,7.55000, "ring",6, 255, 255, 0, 170 ), 
    ["6"] = createMarker ( 1187.44982,-3777.85327,7.55000, "ring",6, 0, 255, 0, 170 ), 
} 
  
Markers["1"] -- الماركر الأولي 

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