Nickelz Posted March 18, 2013 Share 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) Link to comment
PaiN^ Posted March 18, 2013 Share 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) Link to comment
Nickelz Posted March 18, 2013 Author Share 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) مـآضبط للآسف Link to comment
Nickelz Posted March 18, 2013 Author Share Posted March 18, 2013 ضبطته بسس ابيه للريس يعني اذا اخذ السيارة 411 بالريسس يزيد وآحد وشكرا Link to comment
3NAD Posted March 18, 2013 Share 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 Link to comment
Nickelz Posted March 18, 2013 Author Share 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 تعبتك معي المهم بسس يلييت تجيب لي السيارة اللي بـ الريس لانه مايشتغل بـ الريس يشتغل اذا ضغطت انتر وركب السيارة Link to comment
Nickelz Posted March 18, 2013 Author Share Posted March 18, 2013 وش هي السيارة اللي بالريس ؟ انفيرنوس infernus id:411 Link to comment
iPrestege Posted March 18, 2013 Share Posted March 18, 2013 بعد ماتركبة سوي ريستارت للقيم حق الريس # وبيضبط ذذ Link to comment
Nickelz Posted March 18, 2013 Author Share Posted March 18, 2013 بعد ماتركبة سوي ريستارت للقيم حق الريس # وبيضبط ذذ مـآضبط Link to comment
3NAD Posted March 18, 2013 Share 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 Link to comment
Nickelz Posted March 18, 2013 Author Share 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 نفس الشي Link to comment
iPrestege Posted March 18, 2013 Share 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 نفس الشي شغال تمام #, Link to comment
3NAD Posted March 18, 2013 Share Posted March 18, 2013 الريس طريقته مختلفة لأنه سيارة جاهزة ماتضغط انتر .. تقدر تستخدم الإيفنت ذا "onClientMapStarting" Link to comment
Nickelz Posted March 18, 2013 Author Share 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) Link to comment
3NAD Posted March 18, 2013 Share 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 مرة واحدة فقط مافيه شيء يعيد الوظيفة حط الإيفنت على كودي Link to comment
iPrestege Posted March 18, 2013 Share Posted March 18, 2013 الريس طريقته مختلفة لأنه سيارة جاهزة ماتضغط انتر ..تقدر تستخدم الإيفنت ذا "onClientMapStarting" كودك شغال جربتة بالريس ذذ Link to comment
Nickelz Posted March 18, 2013 Author Share 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 مرة واحدة فقط مافيه شيء يعيد الوظيفة حط الإيفنت على كودي مشكؤور تعبتكك معي Link to comment
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