Jump to content

jetPack


Recommended Posts

السلآمم عليكمم ،

هل يوجد فنكششن لـ إلغاء النفآثةة بـ منطقةة محددةة ؟

يعني مثلآ إذآ شخص دخل سسآحةة

وظغط j

م تجيهه النفآثةة = \

وإذآ خخرج

يممديهه -_-

Edited by Guest
Link to comment

تقدر تسوي داتا بالفري روم #

setElementData 
getElementData 

مثال :

  
addCommandHandler("hide", 
    function() 
    setElementData(localPlayer,"JetPack",true) 
end 
) 
  
function toggleJetPack() 
    if getElementData(localPlayer,"JetPack") == true then return end 
    if not doesPlayerHaveJetPack(g_Me) then 
        server.givePlayerJetPack(g_Me) 
        guiCheckBoxSetSelected(getControl(wndMain, 'jetpack'), true) 
    else 
        server.removePlayerJetPack(g_Me) 
        guiCheckBoxSetSelected(getControl(wndMain, 'jetpack'), false) 
    end 
end 
  
bindKey('j', 'down', toggleJetPack) 
  
addCommandHandler('jetpack', toggleJetPack) 
addCommandHandler('jp', toggleJetPack) 
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...