Jump to content

كود -,- جنني


Recommended Posts

السلام عليكم

وين الخطأ؟

addEvent("Jetpack",true)  
  
addEventHandler("Jetpack",root,  
  
function() 
local PlayerMoney = getPlayerMoney(source) 
 if ( PlayerMoney >= 2000) then 
  
    takePlayerMoney(source,2000)  
     
    giveWeapon ( source ,  21,370 ) 
      
    setPedWeaponSlot(source, getSlotFromWeapon(21)) 
     local name = getPlayerName(source) 
  
        outputChatBox ( "#ffffff" .. name .. " #ffffff Has Bought  weapon ...", getRootElement(), 255, 0, 0, true ) 
  
  
      
    else 
  
  
        outputChatBox("You don't have $2000 to buy Jetpack", source, 255, 0, 0, true) 
end  
  
end  
  
)  
------------------------------------------- 

ليش النفاثة ماتطلع ؟

جربت ظغطت j

ماتطلع :(

Link to comment
addEvent("Jetpack",true)  
addEventHandler("Jetpack",root,  
function(player) 
local PlayerMoney = getPlayerMoney(player)---you must but player or localPlayer 
 if ( PlayerMoney >= 2000) then 
    takePlayerMoney(player,2000) ---you must but player or localPlayer 
    givePedJetPack (player)---you must but player or localPlayer and givePedJetPack not giveWeapon ! 
     local name = getPlayerName(player)---you must but player or localPlayer 
        outputChatBox ( "#ffffff" .. name .. " #ffffff Has Bought  JetPack! ...", getRootElement(), 255, 0, 0, true )      
    else  
       outputChatBox("You don't have $2000 to buy Jetpack", player, 255, 0, 0, true) ---you must but player  
end  
  
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...