pp = guiCreateProgressBar(535, 10, 294, 41, false)
guiSetVisible(pp, false)
function show()
if guiGetVisible(pp) then
guiSetVisible(pp, false)
else
guiSetVisible(pp, true)
end
end
bindKey("F3", "both", show)
function checkVehicles( theVehicle )
local id = getElementModel ( theVehicle )
if id == 411 then
guiProgressBarSetProgress( pp, guiProgressBarGetProgress( pp ) + 1 )
end
end
addEventHandler("onClientMapStarting", root, checkVehicles)
هذا بيزيد 1 مرة واحدة فقط
مافيه شيء يعيد الوظيفة
حط الإيفنت على كودي
مشكؤور تعبتكك معي
pp = guiCreateProgressBar(535, 10, 294, 41, false)
guiSetVisible(pp, false)
function show()
if guiGetVisible(pp) then
guiSetVisible(pp, false)
else
guiSetVisible(pp, true)
end
end
bindKey("F3", "both", show)
function checkVehicles( theVehicle )
local id = getElementModel ( theVehicle )
if id == 411 then
guiProgressBarSetProgress( pp, guiProgressBarGetProgress( pp ) + 1 )
end
end
addEventHandler("onClientMapStarting", root, checkVehicles)
شباب عندي كود ابيه اذا ركب السيارة يزيد البروجريس
سويته بسس ماضبط
pp = guiCreateProgressBar(535, 10, 294, 41, false)
guiSetVisible(pp, false)
function show()
if guiGetVisible(pp) then
guiSetVisible(pp, false)
else
guiSetVisible(pp, true)
end
end
bindKey("F3", "both", show)
function checkVehicles()
local vehicleName = getVehicleName ( theVehicle )
if id == 411 then
guiProgressBarSetProgress( pp, guiProgressBarGetProgress( pp ) + 1 )
end
end
addEventHandler("onClientPlayerVehicleEnter",getRootElement(),checkVehicles)
وشش خليت ماسألت عنه؟ههه
end
عند نهاية الوظيفة
function
--هنا تحط الوظايف
end --نهاية الوظيفة
حتى لو تلاحظ كلمة
function
جأت بنفس لون
end
اما
end)
اذا كان الأيفنت في البداية مثل
addCommandHandler("test",
function()
outputChatBox("your test is good")
end)
elseif
هذي صعبة عليك وانا اكتب على الطاير الشباب يكملوا معك .. بالتوفيق