ST0K Posted June 6, 2012 Share Posted June 6, 2012 السلام عليكم وين الخطأ؟ 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
X-SHADOW Posted June 7, 2012 Share Posted June 7, 2012 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
ST0K Posted June 7, 2012 Author Share Posted June 7, 2012 يعطيك العافية عرفت اخطائي thx alote bro Link to comment
Sparrow Posted June 7, 2012 Share Posted June 7, 2012 any errors on debugscript 3? show us how you trigger it Link to comment
ST0K Posted June 7, 2012 Author Share Posted June 7, 2012 لا شكرا صلحت المود بنفسي no thx i fixed the mod by myself 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