xX|KeMo|Xx Posted February 10, 2012 Share Posted February 10, 2012 addEvent("buyJetPack",true) \n \n \naddEventHandler("buyJetPack",root, \n \n \nfunction() \n if ( getPlayerMoney (source) >= 2300 ) then \n takePlayerMoney(source, 2300) \n givePedJetPack(source) \n local name = getPlayerName(source) \n \n outputChatBox("press #ffff00[#ff0000j#ffff00]#00cc00 to open or close JetPack", source, 255, 0, 0, true) \nbindKey ( "j" , "buyJetPack") \nunbindKey ( "j" , "buyJetPack") \n \n outputChatBox ( "" .. name .. " #ffff00 Has Bought #00ffff[jetpack] ", getRootElement(), 255, 0, 0, true ) \n \n \n else \n outputChatBox("#00cc00 You don''t have #ff0000 $2500 #00cc00 to buy #ffff00[jetpack]", source, 255, 0, 0, true) \n end \n end ) j لما اجي اشتريه تيجي لما اجي اضغط ما تشتغل j لما اجي اشتريه تيجي لما اجي اضغط ما تشتغل Link to comment
JR10 Posted February 18, 2012 Share Posted February 18, 2012 مافيش كلينت, انت ناقل جزء و سايب التانى Link to comment
TAPL Posted February 19, 2012 Share Posted February 19, 2012 bindKey ( "j" , "buyJetPack") unbindKey ( "j" , "buyJetPack") هههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههه Link to comment
JR10 Posted February 20, 2012 Share Posted February 20, 2012 Lol'ed. فى نفس الوقت, مش حتشتغل خالص unbindKey و bindKey أنت بتعمل Link to comment
TAPL Posted February 22, 2012 Share Posted February 22, 2012 Server - Syntax 2 (https://wiki.multitheftauto.com/wiki/BindKey) bindKey ( player thePlayer, string key, string keyState, string commandName, string arguments ) (Wrong) خطأ bindKey ( "j" , "buyJetPack") (Correct) التصحيح bindKey(source,"j","down",buyJetPack) function buyJetPack(player) if not doesPedHaveJetPack(player) then givePedJetPack(player) else removePedJetPack(player) end end Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now