Jump to content

مساعده في الشيك بوكس+++


Recommended Posts

السلام عليكم

ابي مساعده في الشيك بوكس

طبعاً

انا سويت شيك بوكس

وابي اول ماتضغطه يركب للسياره نيترو

طبعاً انا سويت كذا

clinet

  
function Check(source) 
    local checked = guiCheckBoxGetSelected(GUIEditor.checkbox[3]) 
    if checked then 
triggerServerEvent("nt",getLocalPlayer())  
       end 
end 
addEventHandler("onClientGUIClick", GUIEditor.checkbox[3], Check, false 

server

addEvent("nt", true) 
addEventHandler("nt", root, 
function(source) 
  if isPedInVehicle(source) then 
      addVehicleUpgrade(getPedOccupiedVehicle(source), 1010) 
     end 
end 
) 

حست فيه ايام ماضبط اتمنى تحلونه

Link to comment
addEventHandler("onClientGUIClick", root, 
function () 
    if source == GUIEditor.checkbox[3] and guiCheckBoxGetSelected(GUIEditor.checkbox[3]) == true then 
       triggerServerEvent("nt",getLocalPlayer()) 
    end 
end 
) 

جرب خل الكلينت كذا

Link to comment

الكلنت مضبوط بس ناقصه قوس بالأخير

والسيرفر جرب هذا

addEvent ( "nt", true ) 
addEventHandler ( "nt", root, 
    function ( ) 
        if isPedInVehicle ( source ) then 
            addVehicleUpgrade ( getPedOccupiedVehicle ( source ), 1010 ) 
        end 
    end 
) 

Link to comment

طيب

ليش لمن اضغط على الشيك بوكس اول مره يجي لون واحد ومايتغير

ثاني مره يجي لون ثاني ويتغير لونين

وزي كذا

انا ابيه أول ما اضغط عليه اول مره يتحول كل شوي على كل الألوان

ذا الكود

  
addEvent ( "cl", true ) 
addEventHandler ( "cl", root, 
    function (  ) 
        if isPedInVehicle( source ) then 
            local Vehicle = getPedOccupiedVehicle( source ) 
            if Vehicle then 
                                                                     setTimer ( setVehicleColor, 500, 0, Vehicle, math.random(0, 255), math.random(0, 255), math.random(0, 255) ) 
            end 
        end 
    end 
) 
  

+++

بليز كود دخان السياره

دورت عليه مالقيته

Edited by Guest
Link to comment
addEvent ( "cl", true ) 
addEventHandler ( "cl", root, 
    function (  ) 
        if isPedInVehicle( source ) then 
            local Vehicle = getPedOccupiedVehicle( source ) 
            if Vehicle then 
                setTimer ( function ( ) 
                    local r, g, b = math.random(0, 255), math.random(0, 255), math.random(0, 255) 
                    setVehicleColor ( Vehicle, r, g, b ) 
                end, 500, 0 ) 
            end 
        end 
    end 
) 
  

للمعلومية بس / كودك الآن تآيمر غير نهائي يعني حتى لو ألغيت الشيك بوكس مراح يتعطل التلوين

يبي لك تستخدم التعريف عشان تقتل التايمر

ex.:

Table = { }; 
  
Table[Vehicle] = setTimer ( ...... ) 
  
killTimer ( Table[Vehicle] ) 

Link to comment
addEvent ( "cl", true ) 
addEventHandler ( "cl", root, 
    function (  ) 
        if isPedInVehicle( source ) then 
            local Vehicle = getPedOccupiedVehicle( source ) 
            if Vehicle then 
                setTimer ( function ( ) 
                    local r, g, b = math.random(0, 255), math.random(0, 255), math.random(0, 255) 
                    setVehicleColor ( Vehicle, r, g, b ) 
                end, 500, 0 ) 
            end 
        end 
    end 
) 
  

للمعلومية بس / كودك الآن تآيمر غير نهائي يعني حتى لو ألغيت الشيك بوكس مراح يتعطل التلوين

يبي لك تستخدم التعريف عشان تقتل التايمر

ex.:

Table = { }; 
  
Table[Vehicle] = setTimer ( ...... ) 
  
killTimer ( Table[Vehicle] ) 

كافية عشان تحقق اذا اللاعب بداخل سيارة أو لا getPedOccupiedVehicle مايحتاج تتحقق مرتين اذا اللاعب معه سيارة أو لا، وظيفة

Returns:

Returns the vehicle that the specified ped is in, or false if the ped is not in a vehicle or is an invalid ped.

. المفروض تسوون هالتحقق هذا بجانب الكلاينت ( قبل إرسال التريقر ) عشان تخفف من اللاق أكبر قدر ممكن +

Link to comment

التحقق واجب

لانه يمكن يجي درباوي يفحط وهو يمشي ويطلع من وراه دخان هههه

او يتغير وجه الوان هههههه

===

وانا اشوف المود فيه لاق

+++

هذا كود الدخان ركبته في شيك بوكس بس خرب الشغل كله

addEvent ( "df", true ) 
addEventHandler ( "df", root, 
function D5(vehicle, player) 
    local Speed = getElementSpeed(vehicle,"kmh") 
    if Speed >= 10 then 
        local x,y,z = getElementPosition(vehicle) 
        if isElement(objects[player]) then return end 
        objects[player] = createObject(2780, x, y, z-2, 0, 0, 0) 
        setElementAlpha(objects[player], 0.0) 
        attachElements(objects[player], vehicle, 0, -2, -1) 
    else 
        if isElement(objects[player]) then 
            destroyElement(objects[player]) 
            objects[player] = nil 
        end 
    end 
end 
) 

Link to comment
التحقق واجب

لانه يمكن يجي درباوي يفحط وهو يمشي ويطلع من وراه دخان هههه

او يتغير وجه الوان هههههه

===

وانا اشوف المود فيه لاق

crazy_monkey.jpg

Link to comment
التحقق واجب

لانه يمكن يجي درباوي يفحط وهو يمشي ويطلع من وراه دخان هههه

او يتغير وجه الوان هههههه

===

وانا اشوف المود فيه لاق

crazy_monkey.jpg

اعوذ بكلمات الله التامات من شر ماخلق :shock:

Link to comment

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