Nickelz Posted March 18, 2013 Posted March 18, 2013 شباب عندي كود ابيه اذا ركب السيارة يزيد البروجريس سويته بسس ماضبط 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)
PaiN^ Posted March 18, 2013 Posted March 18, 2013 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", "down", show) function checkVehicles() local id = getElementModel ( source ) if id == 411 then guiProgressBarSetProgress( pp, guiProgressBarGetProgress( pp ) + 1 ) end end addEventHandler("onClientPlayerVehicleEnter", root, checkVehicles)
Nickelz Posted March 18, 2013 Author Posted March 18, 2013 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", "down", show) function checkVehicles() local id = getElementModel ( source ) if id == 411 then guiProgressBarSetProgress( pp, guiProgressBarGetProgress( pp ) + 1 ) end end addEventHandler("onClientPlayerVehicleEnter", root, checkVehicles) مـآضبط للآسف
Nickelz Posted March 18, 2013 Author Posted March 18, 2013 ضبطته بسس ابيه للريس يعني اذا اخذ السيارة 411 بالريسس يزيد وآحد وشكرا
3NAD Posted March 18, 2013 Posted March 18, 2013 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", "down", show ) function checkVehicles ( theVehicle ) if getElementModel ( theVehicle ) == 411 then if isTimer ( Timer ) then killTimer ( Timer ) end Timer = setTimer ( upgradeValues_, 100, 0, pp ) end end addEventHandler ( "onClientPlayerVehicleEnter", root, checkVehicles ) upgradeValues_ = function ( progress ) if progress and getElementType ( progress ) == "gui-progressbar" then local ProgressValue = guiProgressBarGetProgress ( progress ) if ProgressValue > 99 then if isTimer ( Timer ) then killTimer ( Timer ) return end end guiProgressBarSetProgress ( progress, ProgressValue + 1 ) end end
Nickelz Posted March 18, 2013 Author Posted March 18, 2013 لم يتم التجربة 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", "down", show ) function checkVehicles ( theVehicle ) if getElementModel ( theVehicle ) == 411 then if isTimer ( Timer ) then killTimer ( Timer ) end Timer = setTimer ( upgradeValues_, 100, 0, pp ) end end addEventHandler ( "onClientPlayerVehicleEnter", root, checkVehicles ) upgradeValues_ = function ( progress ) if progress and getElementType ( progress ) == "gui-progress" then local ProgressValue = guiProgressBarGetProgress( progress ) if ProgressValue > 99 then if isTimer ( Timer ) then killTimer ( Timer ) return end end guiProgressBarSetProgress ( progress, + 1 ) end end تعبتك معي المهم بسس يلييت تجيب لي السيارة اللي بـ الريس لانه مايشتغل بـ الريس يشتغل اذا ضغطت انتر وركب السيارة
Nickelz Posted March 18, 2013 Author Posted March 18, 2013 وش هي السيارة اللي بالريس ؟ انفيرنوس infernus id:411
iPrestege Posted March 18, 2013 Posted March 18, 2013 بعد ماتركبة سوي ريستارت للقيم حق الريس # وبيضبط ذذ
Nickelz Posted March 18, 2013 Author Posted March 18, 2013 بعد ماتركبة سوي ريستارت للقيم حق الريس # وبيضبط ذذ مـآضبط
3NAD Posted March 18, 2013 Posted March 18, 2013 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", "down", show ) function checkVehicles ( theVehicle ) if getElementModel ( theVehicle ) == 411 then if isTimer ( Timer ) then killTimer ( Timer ) end Timer = setTimer ( upgradeValues_, 100, 0, pp ) end end addEventHandler ( "onClientPlayerVehicleEnter", root, checkVehicles ) upgradeValues_ = function ( progress ) if progress and getElementType ( progress ) == "gui-progressbar" then local ProgressValue = guiProgressBarGetProgress ( progress ) if ProgressValue > 99 then if isTimer ( Timer ) then killTimer ( Timer ) return end end guiProgressBarSetProgress ( progress, ProgressValue + 1 ) end end
Nickelz Posted March 18, 2013 Author Posted March 18, 2013 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", "down", show ) function checkVehicles ( theVehicle ) if getElementModel ( theVehicle ) == 411 then if isTimer ( Timer ) then killTimer ( Timer ) end Timer = setTimer ( upgradeValues_, 100, 0, pp ) end end addEventHandler ( "onClientPlayerVehicleEnter", root, checkVehicles ) upgradeValues_ = function ( progress ) if progress and getElementType ( progress ) == "gui-progressbar" then local ProgressValue = guiProgressBarGetProgress ( progress ) if ProgressValue > 99 then if isTimer ( Timer ) then killTimer ( Timer ) return end end guiProgressBarSetProgress ( progress, ProgressValue + 1 ) end end نفس الشي
iPrestege Posted March 18, 2013 Posted March 18, 2013 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", "down", show ) function checkVehicles ( theVehicle ) if getElementModel ( theVehicle ) == 411 then if isTimer ( Timer ) then killTimer ( Timer ) end Timer = setTimer ( upgradeValues_, 100, 0, pp ) end end addEventHandler ( "onClientPlayerVehicleEnter", root, checkVehicles ) upgradeValues_ = function ( progress ) if progress and getElementType ( progress ) == "gui-progressbar" then local ProgressValue = guiProgressBarGetProgress ( progress ) if ProgressValue > 99 then if isTimer ( Timer ) then killTimer ( Timer ) return end end guiProgressBarSetProgress ( progress, ProgressValue + 1 ) end end نفس الشي شغال تمام #,
3NAD Posted March 18, 2013 Posted March 18, 2013 الريس طريقته مختلفة لأنه سيارة جاهزة ماتضغط انتر .. تقدر تستخدم الإيفنت ذا "onClientMapStarting"
Nickelz Posted March 18, 2013 Author Posted March 18, 2013 الريس طريقته مختلفة لأنه سيارة جاهزة ماتضغط انتر ..تقدر تستخدم الإيفنت ذا "onClientMapStarting" 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)
3NAD Posted March 18, 2013 Posted March 18, 2013 الريس طريقته مختلفة لأنه سيارة جاهزة ماتضغط انتر ..تقدر تستخدم الإيفنت ذا "onClientMapStarting" 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 مرة واحدة فقط مافيه شيء يعيد الوظيفة حط الإيفنت على كودي
iPrestege Posted March 18, 2013 Posted March 18, 2013 الريس طريقته مختلفة لأنه سيارة جاهزة ماتضغط انتر ..تقدر تستخدم الإيفنت ذا "onClientMapStarting" كودك شغال جربتة بالريس ذذ
Nickelz Posted March 18, 2013 Author Posted March 18, 2013 الريس طريقته مختلفة لأنه سيارة جاهزة ماتضغط انتر ..تقدر تستخدم الإيفنت ذا "onClientMapStarting" 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 مرة واحدة فقط مافيه شيء يعيد الوظيفة حط الإيفنت على كودي مشكؤور تعبتكك معي
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now