Jump to content

فكشنات السرعه


Recommended Posts

function speed() 
local PlayerMoney = getPlayerMoney(source) 
if ( PlayerMoney >= 10000) then 
takePlayerMoney(source,10000)  
function speed (player) 
speedx, speedy, speedz = getElementVelocity (player) 
setElementVelocity (player , x+50, y+50, z+50 ) 
end 
end 
end 
addEvent("speed", true) 
addEventHandler("speed", getRootElement(), speed ) 

؟؟؟؟؟؟؟؟

Link to comment
addEventHandler("onClientGUIClick", root, 
function() 
if(source == B_H4) then 
triggerServerEvent("speed",localPlayer) 
guiSetVisible ( W_H2 , false ) 
showCursor ( false ) 
speedx, speedy, speedz = getElementVelocity (source) 
setElementVelocity (source , x+50, y+50, z+50 ) 
end 
end 
) 

كذا؟

Link to comment
--كلنت 
addEventHandler("onClientGUIClick", root, 
function() 
if(source == B_H4) then 
triggerServerEvent("speed",localPlayer) 
guiSetVisible ( W_H2 , false ) 
showCursor ( false ) 
end 
end 
) 

--سيرفر 
function speed() 
local PlayerMoney = getPlayerMoney(source) 
if ( PlayerMoney >= 10000) then 
takePlayerMoney(source,10000) 
speedx, speedy, speedz = getElementVelocity (source) 
setElementVelocity (source , x+50, y+50, z+50 ) 
end 
end 
  
addEvent("speed", true) 
addEventHandler("speed", getRootElement(), speed ) 

Link to comment
لا بس اللاعب

يتحرك بسرعه

اللي أنت تستخدمة :| ذا مايخليكـ سريع غلططآن يوم قلت لكـ آستخدمةة المفترض اللعبة مثل مآقلت بـ ردي آلآول لانة هذي مآرآح تخلية سريع لـ مدة استخدم اللعبه ,

Link to comment

جرب هذا

-- Client Side 
addEventHandler ( "onClientGUIClick", root, 
    function ( ) 
        if source == B_H4 then 
            if getPlayerMoney ( localPlayer ) >= 10000 then 
                triggerServerEvent ( "speed", localPlayer ) 
                setGameSpeed ( 10 ) 
                guiSetVisible ( W_H2 , false ) 
                showCursor ( false ) 
            end 
        end 
    end 
) 

-- Server Side 
addEvent ( "speed", true ) 
addEventHandler ( "speed", root, 
    function ( ) 
        takePlayerMoney ( source, 10000 ) 
    end 
) 

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