Jump to content

getWeaponProperty [{( مساعده )}]


Recommended Posts

السلام عليكم ورحمه الله وبركاتة

اليوم صادفتني مشكلة غريبة

وهي لما استخدم الكود

getWeaponProperty

16 : الايدي حقوا | grenade : مع سلاح القنبلة اللي هو اسموا 

علطول النتيجة تطلع فولس

addCommandHandler( '1' , 
	function( ped )
		outputChatBox( getWeaponProperty( 16 , 'poor' , 'skill_level' ) )
	end
)

ياريت اي حد لو عندوا معلومة او كيفية  تصليح الكود يفيدني

ومتشكر جدا | مع السلامة =)

Link to comment
  On 07/10/2018 at 18:57, #_iMr,[E]coo said:

وانا وش قلت له ؟ :|

Expand  

مافي فنكشن بإسم :-
 

setElementProperty

 

  On 07/10/2018 at 18:50, KillerX said:

مب السكل لفل فقط في اشياء كثير اخري مثل

weapon_slot

Expand  

 

إطرح أكوادك حقت الـ
weapon_slot
+
https://wiki.multitheftauto.com/wiki/Weapons
رابط لـ السلوتس

 

Edited by #Ram
Link to comment
  On 07/10/2018 at 19:54, #Ram said:

إطرح أكوادك حقت الـ

Expand  
addCommandHandler( '1', 
	function( player )	
		outputChatBox( 'Slot : ' .. tostring( getWeaponProperty( 16 , 'pro' , 'weapon_slot' ) ) )
		outputChatBox( 'Slot : ' .. tostring( getWeaponProperty( 16 , 'std' , 'weapon_slot' ) ) )
		outputChatBox( 'Slot : ' .. tostring( getWeaponProperty( 16 , 'poor' , 'weapon_slot' ) ) )
	end
)

or

addCommandHandler( '1', 
	function( player )	
		outputChatBox( 'model : ' .. tostring( getWeaponProperty( 16 , 'poor' , 'model' ) ) )
		outputChatBox( 'model : ' .. tostring( getWeaponProperty( 16 , 'std' , 'model' ) ) )
		outputChatBox( 'model : ' .. tostring( getWeaponProperty( 16 , 'pro' , 'model' ) ) )
	end
)

 

Link to comment
  On 07/10/2018 at 20:07, KillerX said:

addCommandHandler( '1', 
	function( player )	
		outputChatBox( 'Slot : ' .. tostring( getWeaponProperty( 16 , 'pro' , 'weapon_slot' ) ) )
		outputChatBox( 'Slot : ' .. tostring( getWeaponProperty( 16 , 'std' , 'weapon_slot' ) ) )
		outputChatBox( 'Slot : ' .. tostring( getWeaponProperty( 16 , 'poor' , 'weapon_slot' ) ) )
	end
)

or


addCommandHandler( '1', 
	function( player )	
		outputChatBox( 'model : ' .. tostring( getWeaponProperty( 16 , 'poor' , 'model' ) ) )
		outputChatBox( 'model : ' .. tostring( getWeaponProperty( 16 , 'std' , 'model' ) ) )
		outputChatBox( 'model : ' .. tostring( getWeaponProperty( 16 , 'pro' , 'model' ) ) )
	end
)

 

Expand  

تأكد إن اللاعب معه السلاح ..
+ انت هنا تحاول تجيب مودل السلاح والسلوت حقته يعني ؟؟؟ 
ولو تقدر تطرح ايش تبي تسوي وايش مقصدك يمكن نقدر نسويها لك بطريقة ثانية ,

هذا الفنكشن :
https://wiki.multitheftauto.com/wiki/GetPedWeaponSlot
يجلب لك السلوت حقت السلاح الي انت ماسكه دحين ..

Link to comment
  On 07/10/2018 at 20:34, #Ram said:

تأكد إن اللاعب معه السلاح ..
+ انت هنا تحاول تجيب مودل السلاح والسلوت حقته يعني ؟؟؟ 
ولو تقدر تطرح ايش تبي تسوي وايش مقصدك يمكن نقدر نسويها لك بطريقة ثانية ,

هذا الفنكشن :
https://wiki.multitheftauto.com/wiki/GetPedWeaponSlot
يجلب لك السلوت حقت السلاح الي انت ماسكه دحين ..

Expand  

قصدي هنا مو السلوت 

قصدي ان الفنكشن مع القنبلة في الاغلب يرجع فولس

Link to comment
  On 07/10/2018 at 20:39, KillerX said:

قصدي هنا مو السلوت 

قصدي ان الفنكشن مع القنبلة في الاغلب يرجع فولس

Expand  

القنبلة في بروبارتيز ماتحصلها فيها ..

مو كل الاسلحة فيها , إبحث بالويكي تعرف إيش الي فيه وإيش إلي مافيه ..

أم تي إي مافي شيء مستحيل بالبرمجة فيها , كل شيء تبيه تقدر تسويه
لكن القنبلة مو مبرمجه ببروبارتيز معينة , تكون عادةً مالها لزوم ..

Link to comment
  On 07/10/2018 at 20:40, #Ram said:

القنبلة في بروبارتيز ماتحصلها فيها ..

مو كل الاسلحة فيها , إبحث بالويكي تعرف إيش الي فيه وإيش إلي مافيه ..

Expand  

لا الويكي مب قايل الكل يطلع فولس

Property = { 'fire_type' , 'model' , 'model2' , 'weapon_slot' , 'anim_group' , 
'skill_level' , 'required_skill_level' , 'firing_speed' , 'radius' , 'life_span' , 'spread' , 
'fire_offset' , 'aim_offset' , 'default_combo' , 'combos_available' }

for _ , P in ipairs( Property ) do
	outputChatBox( tostring( getWeaponProperty( 16 , 'pro' , P ) ) )
end

 

Link to comment
  On 07/10/2018 at 20:46, KillerX said:

لا الويكي مب قايل الكل يطلع فولس


Property = { 'fire_type' , 'model' , 'model2' , 'weapon_slot' , 'anim_group' , 
'skill_level' , 'required_skill_level' , 'firing_speed' , 'radius' , 'life_span' , 'spread' , 
'fire_offset' , 'aim_offset' , 'default_combo' , 'combos_available' }

for _ , P in ipairs( Property ) do
	outputChatBox( tostring( getWeaponProperty( 16 , 'pro' , P ) ) )
end

 

Expand  

انا قلت لك الكل يطلع فولس ؟؟؟؟؟؟؟؟؟؟؟

  On 07/10/2018 at 20:40, #Ram said:

مو كل الاسلحة

Expand  

 

Link to comment
  On 08/10/2018 at 20:08, [T]|O|[P]George said:

Returns

On success:

int: The weapon property

On failure:

bool: False if the passed arguments were invalid

 

في اسلحة ما لها خصائص تعدل عليها من ضمنها القنابل و السكين و المضرب

و شوف لو نفع معك M4 جرب تعدل علي سلاح 

Expand  

يب داري ان الام فور وغيروا بيطلع 

بس الويكي مب قايل ان القنبلة مالها بروبرتي 

Link to comment
  On 08/10/2018 at 21:49, [T]|O|[P]George said:

لانك ما تقدر تعدل لو تبيه يضرب عن بعد او تبي كام دمجه انما تقدر تسوي تحقق لو السلاح كان بالاي دي 16

فيقلل مثلا 30 من اللاعب الي تدمج ذا لو تبي تزيد الدمج لسلاح

Expand  

المقصد ما ابي الدمج انا اعطي مثال فقط من البروبيرتي

علي العموم مشكور :)

Link to comment
  On 08/10/2018 at 22:11, KillerX said:

المقصد ما ابي الدمج انا اعطي مثال فقط من البروبيرتي

علي العموم مشكور :)

Expand  

العفو - بس ذا الي فهمته من كلامك 

 

  On 08/10/2018 at 20:31, KillerX said:

اظن انوا بق لان مثلا شئ مثل الدميدج المفروض للسلاح عادي حتي لو بدون تصويب

هو بيطلعوا فولس ?

 

Expand  

لو ينفع توضح مقصدك يمكن غيري يقدر يساعدك - و بس

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...