XboxMS Posted March 21, 2015 Share Posted March 21, 2015 (edited) السلام عليكم معي مشكلة في الاسلحة سويت سكربت يخلي سلاح ملتصق في سيارة ويطلق بزر و يوقف و قائمة شراء دخيره وكل شي تمام لكن هدا كله بدون تجربه مع واحد غيري المشكلة عندي ان السلاح ما يطلع لغيري ولا يأثر فيهم ولا شي يعني كيف اسويه يطلع للكل هو و الاصوات او اي فنكشن مثل setVehicleComponentRotation بحثث بالمنتدى العربي والانجليزي لقيت مثال باستخدام triggerClientEvent مع وضع السورس root لكن ما ظبط ولا غير شيء --serverside local key = "num_0" function create_car (player,seat) if getElementModel(source) == 470 and seat == 0 then local money = getPlayerMoney(player) bindKey(player,key,"down",bindMyKeys,money,source) end end addEventHandler("onVehicleEnter",root,create_car) function bindMyKeys (player,key,state,money,vehicle) if money >= 100000 then local x,y,z = getElementPosition(vehicle) weap_blib = createBlipAttachedTo(vehicle,0,4,255,0,0,255,0,99999) triggerClientEvent(player,"onBindToFire",getRootElement(),vehicle,z,y,z) triggerClientEvent(player,"onEnter",player) local mn = getPlayerMoney(player) setElementData(vehicle,"isWeaponCar",true) setElementData(vehicle,"hasPlayerWeapon",true) setPlayerMoney(player,mn-100000) unbindKey(player,key,"down",bindMyKeys) elseif money < 100000 then outputChatBox("money",player,255,0,0) end end . --clientside function CreateWeapon_c (vehicle,x,y,z) weapon = createWeapon("minigun",x,y,z) setWeaponAmmo(weapon,3000) setWeaponProperty(weapon, "fire_rotation", 0,-40,0) setWeaponProperty(weapon, "damage",80) attachElements(weapon,vehicle,0,0.5,2.17,0,39,90) end ياريت لو في طريقة مجربه وتشتغل تفيدوني مشكورين مقدما Edited March 21, 2015 by Guest Link to comment
yazan Posted March 21, 2015 Share Posted March 21, 2015 ليه حاط الفنكشن setWeaponAmmo(weapon,3000) setWeaponProperty(weapon, "fire_rotation", 0,-40,0) setWeaponProperty(weapon, "damage",80) attachElements(weapon,vehicle,0,0.5,2.17,0,39,90) كلنت يصلح سيرفر Link to comment
TAPL Posted March 21, 2015 Share Posted March 21, 2015 ليه حاط الفنكشن setWeaponAmmo(weapon,3000) setWeaponProperty(weapon, "fire_rotation", 0,-40,0) setWeaponProperty(weapon, "damage",80) attachElements(weapon,vehicle,0,0.5,2.17,0,39,90) كلنت يصلح سيرفر فنكشن الي يسوي السلاح كلينت فقط Link to comment
XboxMS Posted March 21, 2015 Author Share Posted March 21, 2015 ياتر على ظهوره للاخرين؟ ما اعتقد لانه فنكشن يصلح للاتنين Link to comment
yazan Posted March 21, 2015 Share Posted March 21, 2015 كلنت يظهر فقط للاعب يلي قام بالحدث Link to comment
XboxMS Posted March 21, 2015 Author Share Posted March 21, 2015 عارف انه لمن قام بالحدت لكن اكيد في طريقة https://community.multitheftauto.com/in ... ls&id=5711 و حتى في الشوتر FFS Link to comment
yazan Posted March 21, 2015 Share Posted March 21, 2015 خخخخخخخخخخ وش المود ذا مشفر وش فاهم منه انت Link to comment
XboxMS Posted March 21, 2015 Author Share Posted March 21, 2015 اكيد مشفر لكن اساس المود واضح في نظري Link to comment
yazan Posted March 21, 2015 Share Posted March 21, 2015 This function was disabled in revision r4872. 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