Jump to content

طلب صغير


Recommended Posts

Posted

شباب عندي كود ابيه اذا ركب السيارة يزيد البروجريس

سويته بسس ماضبط

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) 
Posted
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) 

Posted
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) 

مـآضبط للآسف xD

Posted
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 

Posted
لم يتم التجربة
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 

xD تعبتك معي

المهم بسس يلييت تجيب لي السيارة اللي بـ الريس لانه مايشتغل بـ الريس

يشتغل اذا ضغطت انتر وركب السيارة

Posted
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 

Posted
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 

نفس الشي :(

Posted
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 

نفس الشي :(

شغال تمام #,

Posted

الريس طريقته مختلفة لأنه سيارة جاهزة ماتضغط انتر ..

تقدر تستخدم الإيفنت ذا

"onClientMapStarting" 

Posted
الريس طريقته مختلفة لأنه سيارة جاهزة ماتضغط انتر ..

تقدر تستخدم الإيفنت ذا

"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) 

:|

Posted
الريس طريقته مختلفة لأنه سيارة جاهزة ماتضغط انتر ..

تقدر تستخدم الإيفنت ذا

"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 مرة واحدة فقط

مافيه شيء يعيد الوظيفة

حط الإيفنت على كودي

Posted
الريس طريقته مختلفة لأنه سيارة جاهزة ماتضغط انتر ..

تقدر تستخدم الإيفنت ذا

"onClientMapStarting" 

كودك شغال جربتة بالريس ذذ

Posted
الريس طريقته مختلفة لأنه سيارة جاهزة ماتضغط انتر ..

تقدر تستخدم الإيفنت ذا

"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 مرة واحدة فقط

مافيه شيء يعيد الوظيفة

حط الإيفنت على كودي

مشكؤور :) تعبتكك معي

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