بس عندي مشكلة انه يشتغل مرة واحدة بس
يصير انه يكرر الامر اكثر من مرة او يكون unlimited
لانه انا راح اغير اتجاهيي او الروتيشن اكثر من مرة
جيكته و ما ضبط عندي ممكن تشوف لي حل هذي كل الكواد الي عندي
وللعلم فهمت ان ال100 = 100لحظة وان الصفر تعني تكرار لا نهائي
local pylonid = 2662
local pylon_x, pylon_y = 0, 0.5
local pylon_c, pylon_v = 0, 0
local pylonheight = 0
local pylonscale = 1.3
local function pylonHead(player, command)
if not pylon or pylon == nil then
local px, py, pz = getElementPosition( player )
pylon = createObject( pylonid, px, py, pz)
attachElements(pylon, player, pylon_x-1, pylon_y, pylonheight, 0, 0, 180)
setObjectScale( pylon, pylonscale )
setElementCollisionsEnabled( pylon, true )
myBlip = createBlipAttachedTo ( player, 19 )
ped = createPed( 105, px, py, pz)
attachElements( ped, player, pylon_c-2, pylon_v, pylonheight)
setPedAnimation(ped, "wuzi", "wuzi_walk")
peda = createPed( 33, px, py, pz)
attachElements( peda, player, pylon_c-1, pylon_v-1, pylonheight)
setPedAnimation(peda, "wuzi", "wuzi_walk")
pedb = createPed( 33, px, py, pz)
attachElements( pedb, player, pylon_c, pylon_v-1, pylonheight)
setPedAnimation(pedb, "wuzi", "wuzi_walk")
pedc = createPed( 105, px, py, pz)
attachElements( pedc, player, pylon_c-2, pylon_v-1, pylonheight)
setPedAnimation(pedc, "wuzi", "wuzi_walk")
setTimer(setPedRotation, 100, 0, pedc, getPedRotation(player))
else
detachElements( pylon, player )
detachElements( ped, player )
detachElements( peda, player )
detachElements( pedb, player )
detachElements( pedc, player )
destroyElement( pylon )
setPedAnimation(ped, "riot", "riot_angry")
setPedAnimation(peda, "riot", "riot_chant")
setPedAnimation(pedb, "riot", "riot_punches")
setPedAnimation(pedc, "riot", "riot_shout")
destroyElement( myBlip )
pylon = nil
end
end
addCommandHandler("bnr", pylonHead)
ضبطت معاي بس مرة وحدة شوف الصورة عقب ما خليت البيد
C يتغير الروتيشن حقه
بس مرة وحدة يغير الروتيشن حقه مو اكثر