Jump to content

* [ createEffect ] شرح


Recommended Posts

  • 2 weeks later...
Posted
On 9/6/2017 at 11:57, #Himoo said:

                                                                             بسم الله الرحمن الرحيم
اليوم جايبلكم شرح وظيفة

 


createEffect

Client Only اول شي الفنكشن
p_6145blw21.png

Syntax نيجي الحين لل
 


effect createEffect ( string name, float x, float y, float z [, float rX, float rY, float rZ, float drawDistance = 0 ] )

string name = هنا يقصد سترينج ثم اسم التأثير
https://wiki.multitheftauto.com/wiki/Element/Effect#Effects_list لمعرفة اسماء التأثيرات خش هذا اللينك
float x , float y , float z = الاحداثيات x,y,z
---
مثال 1


addCommandHandler("تاثير", 
	function()
		createEffect("wallbust", -709.07355,962.01721,12.45613)
			outputChatBox("تم صنع تأثير",255,255,0,true)
		end
)

وهنا اول مثال نبيه اول م اللاعب يكتب في اف 8 تاثير يجيله التأثير في الاحداثيات الي قدامه
صورة :
p_61464q7g1.png

مثال 2
 


addCommandHandler("effect", 
	function()
	local x, y, z = getElementPosition(localPlayer)
		createEffect("flamethrower", x, y, z)
			outputChatBox("تم صنع التأثير",255,255,0,true)
		end
)

في اف 8 يجيله تأثير نار effect هنا نبيه اول م يكتب كلمة
صورة :
p_614zka521.png

اتمني الشرح يكون اعجبكم
ويلا مع السلامة :)

ممكن سؤال بس

 

الأفكت هذا مثلا

flamethrower

اسم من عقلك ؟؟ ول هو اسمه كذا يشتغل على طول

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