MrCor Posted December 17, 2012 Share Posted December 17, 2012 (edited) شباب أبي كود أحدد به عدد الرصاص تبع السلاح مثلا أنا أبي السنايبر 3 طلقات بعدين يعشق وشكرا ـــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــ الي فوق تم الحين المشكلة هي أن هذا الكود مو شغال function weaponProperty ( ) setWeaponProperty(30, "poor", "maximum_clip_ammo", 3) end addEventHandler("onResourceStart", getRootElement(), weaponProperty) أرجو التصحيح Edited December 22, 2012 by Guest Link to comment
|Mr|-Talal07-| Posted December 18, 2012 Share Posted December 18, 2012 استخدم setWeaponProperty Link to comment
iMr.Dawix~# Posted December 18, 2012 Share Posted December 18, 2012 استخدم setWeaponProperty كم طلال بالمنتدى Link to comment
MrCor Posted December 19, 2012 Author Share Posted December 19, 2012 استخدم setWeaponProperty الي فهمته من الويكي أنه حق مهارات الأسلحة يعني أخليه مبتدء أو خبير ياليت أحد يعطيني مثال زي الي أنا أبيه Link to comment
MrCor Posted December 19, 2012 Author Share Posted December 19, 2012 يصير كذا يعني setWeaponProperty(23, "pro", "maximum_clip_ammo", 3) Link to comment
AhmadQTR Posted December 19, 2012 Share Posted December 19, 2012 يصير كذا يعني setWeaponProperty(23, "pro", "maximum_clip_ammo", 3) يب ليش لا Link to comment
|Mr|-Talal07-| Posted December 19, 2012 Share Posted December 19, 2012 يصير كذا يعني setWeaponProperty(23, "pro", "maximum_clip_ammo", 3) يب و تقدر تعدل على اي سلاح تبيه تخليه قوي يقتل بسرعة يسير في يدك 2 منه من ذي الوظيفة Link to comment
MrCor Posted December 20, 2012 Author Share Posted December 20, 2012 function onResourceStart() setWeaponProperty(30, "poor", "maximum_clip_ammo", 3) end addEventHandler("onResourceStart", resourceRoot, onResourceStart) ويش الغلط هو كان شغال بس وقف مادري ليش Link to comment
iPrestege Posted December 20, 2012 Share Posted December 20, 2012 function onResourceStart() setWeaponProperty(30, "poor", "maximum_clip_ammo", 3) end addEventHandler("onResourceStart", resourceRoot, onResourceStart) ويش الغلط هو كان شغال بس وقف مادري ليش 30 = ?? Wiki = weaponID: The ID or name of the weapon you want to set a property of. Names can be: grenade teargas molotov colt 45 silenced deagle shotgun sawed-off combat shotgun uzi mp5 ak-47 m4 tec-9 rifle sniper rocket launcher rocket launcher hs flamethrower minigun satchel bomb spraycan fire extinguisher camera Link to comment
MrCor Posted December 20, 2012 Author Share Posted December 20, 2012 function onResourceStart() setWeaponProperty(30, "poor", "maximum_clip_ammo", 3) end addEventHandler("onResourceStart", resourceRoot, onResourceStart) ويش الغلط هو كان شغال بس وقف مادري ليش 30 = ?? Wiki = weaponID: The ID or name of the weapon you want to set a property of. Names can be: grenade teargas molotov colt 45 silenced deagle shotgun sawed-off combat shotgun uzi mp5 ak-47 m4 tec-9 rifle sniper rocket launcher rocket launcher hs flamethrower minigun satchel bomb spraycan fire extinguisher camera bool setWeaponProperty ( int weaponID/string weaponName, string weaponSkill, string property, int/float theValue ) Example setWeaponProperty(23, "pro", "flags", 0x000800) setWeaponProperty(23, "pro", "flags", 0x000002) setWeaponProperty(23, "pro", "maximum_clip_ammo", 34) و أزيدك جربته كذا setWeaponProperty("minigun", "pro", "maximum_clip_ammo", 1000) ولا زبط مادري ليش أول مره زبط بعدين سويت ريسترات حق السيرفر و وقف Link to comment
MrCor Posted December 20, 2012 Author Share Posted December 20, 2012 function onResourceStart() setWeaponProperty(30, "poor", "maximum_clip_ammo", 3) end addEventHandler("onResourceStart", resourceRoot, onResourceStart) ويش الغلط هو كان شغال بس وقف مادري ليش 30 = ?? Wiki = weaponID: The ID or name of the weapon you want to set a property of. Names can be: grenade teargas molotov colt 45 silenced deagle shotgun sawed-off combat shotgun uzi mp5 ak-47 m4 tec-9 rifle sniper rocket launcher rocket launcher hs flamethrower minigun satchel bomb spraycan fire extinguisher camera Link to comment
AhmadQTR Posted December 20, 2012 Share Posted December 20, 2012 function weaponProperty () setWeaponProperty(30, "poor", "maximum_clip_ammo", 3) end addEventHandler("onResourceStart", root, weaponProperty) Link to comment
MrCor Posted December 20, 2012 Author Share Posted December 20, 2012 function weaponProperty () setWeaponProperty(30, "poor", "maximum_clip_ammo", 3) end addEventHandler("onResourceStart", root, weaponProperty) ما زبط البيد يزبط عليه يطلق بس 3 أم اللاعب ما يزبط عليه مادري ليش Link to comment
MrCor Posted December 20, 2012 Author Share Posted December 20, 2012 المشكلة الحين : الكود أول ما جربته زبط و صارو 3 طلقات بس سويت ريسترات حق السيرفر راح لكن البيد يطلق بس 3 Link to comment
MrCor Posted December 21, 2012 Author Share Posted December 21, 2012 function weaponProperty () setWeaponProperty(30, "poor", "maximum_clip_ammo", 3) end addEventHandler("onResourceStart", root, weaponProperty) Link to comment
MrCor Posted December 21, 2012 Author Share Posted December 21, 2012 أتوقع المشكلة مو من الكود لأن أول ما ركبته أشتغل تمام بس لم سويت ريسترات حق السيرفر خرب Link to comment
|Mr|-Talal07-| Posted December 22, 2012 Share Posted December 22, 2012 أتوقع المشكلة مو من الكودلأن أول ما ركبته أشتغل تمام بس لم سويت ريسترات حق السيرفر خرب ذي اانا جربتها و شغال بس اول ما تشغله يشتغل و اذا سويت للمود ريستارت يروح سوي ريستارت ثاني و ترجع Link to comment
кιηg-αвα∂у Posted December 22, 2012 Share Posted December 22, 2012 الخطأ انك حاط الأيدي بدل الأسم جرب كذا function weaponProperty () setWeaponProperty(sniper, "pro", "maximum_clip_ammo", 3) end addEventHandler("onResourceStart", root, weaponProperty) Link to comment
AhmadQTR Posted December 22, 2012 Share Posted December 22, 2012 الخطأ انك حاط الأيدي بدل الأسمجرب كذا function weaponProperty () setWeaponProperty(sniper, "pro", "maximum_clip_ammo", 3) end addEventHandler("onResourceStart", root, weaponProperty) على كفيك جيت و قلت الخطأ من الايدي؟ اقرا الويكي اول بعدين تعال تفلسف weaponID: The ID or name of the weapon you want to set a property of. Link to comment
Blaawee Posted December 22, 2012 Share Posted December 22, 2012 جرب كذآ .. addEventHandler("onResourceStart", resourceRoot, function( thisRes ) setWeaponProperty ( 30, "flags", 0x001000 ) setWeaponProperty ( 30, "pro", "maximum_clip_ammo", 3 ) end ) weaponSkill: Either: "pro", "std" or "poor". The player must have this skill level set to have the effect. Link to comment
MrCor Posted December 22, 2012 Author Share Posted December 22, 2012 جرب كذآ .. addEventHandler("onResourceStart", resourceRoot, function( thisRes ) setWeaponProperty ( 30, "flags", 0x001000 ) setWeaponProperty ( 30, "pro", "maximum_clip_ammo", 3 ) end ) weaponSkill: Either: "pro", "std" or "poor". The player must have this skill level set to have the effect. كفووؤو عبادي شكرا 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