Jump to content

استفسار


Recommended Posts

Posted (edited)

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

يا اخوان وش الفنكشن او الحدث الي لازم استخدمه مشان احدد المكان الي يطلق فيه النار الشخص 

يعني الرصاصه وين تطب

Edited by K̷i̷n̷g̷ x̷D̷ツ
Posted

onPlayerWeaponFire

وفيه بارتمرات يقولك وين طلق

Experienced MTA developer for 4 years. | MTA خبرة 4 سنين في برمجة

ليس عليك اسعاد الجميع ,
ولكن عليك بإن لا تؤذي أحداً 

=========
You do not have to make everyone happy,
But you should not hurt anyone

 

Want to contact with me?

 

Discord: JustCarry#2616 (Always there)
Skype: Live:JustCarry10 (Not always)

Posted
Just now, K̷i̷n̷g̷ x̷D̷ツ said:

اوك شكراً يالغالي

 

عفواً <3

Experienced MTA developer for 4 years. | MTA خبرة 4 سنين في برمجة

ليس عليك اسعاد الجميع ,
ولكن عليك بإن لا تؤذي أحداً 

=========
You do not have to make everyone happy,
But you should not hurt anyone

 

Want to contact with me?

 

Discord: JustCarry#2616 (Always there)
Skype: Live:JustCarry10 (Not always)

Posted (edited)
21 minutes ago, iMr.WiFi..! said:

عفواً <3

قولي بخليه يطلق على اوبجكت هذي محاولتي شوف

addEventHandler ("onPlayerWeaponFire", root, 
   function (weapon, endX, endY, endZ, hitElement, startX, startY, startZ)
   local x,y,z = -3193.9821777344, 400.50186157227, 22.801750183105
   local foha = createObject ( 5154,x,y,z, 90, 0, 0 )
   if hitElement == foha then
   moveObject (foha,300,x+5,y+5,z+5)
   end
  end
)

ما يتحرك الاوبجكت

Edited by K̷i̷n̷g̷ x̷D̷ツ
Posted (edited)
3 minutes ago, K̷i̷n̷g̷ x̷D̷ツ said:

قولي بخليه يطلق على اوبجكت هذي محاولتي شوف


addEventHandler ("onPlayerWeaponFire", root, 
   function (weapon, endX, endY, endZ, hitElement, startX, startY, startZ)
   local x,y,z = -3193.9821777344, 400.50186157227, 22.801750183105
   local foha = createObject ( 5154,x,y,z, 90, 0, 0 )
   if hitElement == foha then
   moveObject (foha,300,x+5,y+5,z+5)
   end
  end
)

 

addEventHandler ("onPlayerWeaponFire", root, 
   function (weapon, endX, endY, endZ, hitElement, startX, startY, startZ)
   local x,y,z = -3193.9821777344, 400.50186157227, 22.801750183105
   local foha = createObject ( 5154,x,y,z, 90, 0, 0 )
   if endX == x and endY == y+1 and endZ == z or hitElement == foha then
   moveObject (foha,300,x+5,y+5,z+5)
   end
  end
)

 

Edited by iMr.WiFi..!

Experienced MTA developer for 4 years. | MTA خبرة 4 سنين في برمجة

ليس عليك اسعاد الجميع ,
ولكن عليك بإن لا تؤذي أحداً 

=========
You do not have to make everyone happy,
But you should not hurt anyone

 

Want to contact with me?

 

Discord: JustCarry#2616 (Always there)
Skype: Live:JustCarry10 (Not always)

Posted
Just now, iMr.WiFi..! said:

addEventHandler ("onPlayerWeaponFire", root, 
   function (weapon, endX, endY, endZ, hitElement, startX, startY, startZ)
   local x,y,z = -3193.9821777344, 400.50186157227, 22.801750183105
   local foha = createObject ( 5154,x,y,z, 90, 0, 0 )
   if endX == x and endY == y+1 and endZ == z then
   moveObject (foha,300,x+5,y+5,z+5)
   end
  end
)

 

ترا جربت كذا بالاحول بس ذا  ازا شخص اطلق بمكان الاوبجكت المحدد يعني ازا اطلق عليه بس بمكان ثاني ما يزبط

 

Posted
Just now, K̷i̷n̷g̷ x̷D̷ツ said:

ترا جربت كذا بالاحول بس ذا  ازا شخص اطلق بمكان الاوبجكت المحدد يعني ازا اطلق عليه بس بمكان ثاني ما يزبط

 

جرب كودي عدلته ,,

Experienced MTA developer for 4 years. | MTA خبرة 4 سنين في برمجة

ليس عليك اسعاد الجميع ,
ولكن عليك بإن لا تؤذي أحداً 

=========
You do not have to make everyone happy,
But you should not hurt anyone

 

Want to contact with me?

 

Discord: JustCarry#2616 (Always there)
Skype: Live:JustCarry10 (Not always)

Posted (edited)
addEventHandler ("onPlayerWeaponFire", root, 
   function (weapon, endX, endY, endZ, hitElement, startX, startY, startZ)
   local x,y,z = -3193.9821777344, 400.50186157227, 22.801750183105
   local foha = createObject ( 5154,x,y,z, 90, 0, 0 )
   if endX == x and endY == y+1 and endZ == z then
   moveObject (foha,300,x+5,y+5,z+5)
   end
  end
)

يعني مالك الا هالكود : (

+ او تقدر تسوي بيد مخفي بمكان الاوبجكت

وتحقق انه اذا البيد تدمج تحرك الاوبجكت

Edited by iMr.WiFi..!

Experienced MTA developer for 4 years. | MTA خبرة 4 سنين في برمجة

ليس عليك اسعاد الجميع ,
ولكن عليك بإن لا تؤذي أحداً 

=========
You do not have to make everyone happy,
But you should not hurt anyone

 

Want to contact with me?

 

Discord: JustCarry#2616 (Always there)
Skype: Live:JustCarry10 (Not always)

Posted
1 minute ago, iMr.WiFi..! said:

addEventHandler ("onPlayerWeaponFire", root, 
   function (weapon, endX, endY, endZ, hitElement, startX, startY, startZ)
   local x,y,z = -3193.9821777344, 400.50186157227, 22.801750183105
   local foha = createObject ( 5154,x,y,z, 90, 0, 0 )
   if endX == x and endY == y+1 and endZ == z then
   moveObject (foha,300,x+5,y+5,z+5)
   end
  end
)

يعني مالك الا هالكود : (

+ او تقدر تسوي بيد مخفي بمكان الاوبجكت

وتحقق انه اذا البيد تدمج تحرك الاوبجكت

هممم يب جميل بسوي بيد وتحقق ازا تدمج خلاص شكراً

Posted
Just now, K̷i̷n̷g̷ x̷D̷ツ said:

هممم يب جميل بسوي بيد وتحقق ازا تدمج خلاص شكراً

عفواً <3

Experienced MTA developer for 4 years. | MTA خبرة 4 سنين في برمجة

ليس عليك اسعاد الجميع ,
ولكن عليك بإن لا تؤذي أحداً 

=========
You do not have to make everyone happy,
But you should not hurt anyone

 

Want to contact with me?

 

Discord: JustCarry#2616 (Always there)
Skype: Live:JustCarry10 (Not always)

Posted
2 minutes ago, K̷i̷n̷g̷ x̷D̷ツ said:

 local voo = createObject (1224,-3178.576171875, 415.37451171875, 22.801750183105,0,0,0)
function ven(weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement, x, y, z)
if hitElement == voo then
outputChatBox("damnnn",255,255,255)
	end
	end
addEventHandler("onClientPlayerWeaponFire", root, ven)

سويته وتمام شوف 

@iMr.WiFi..!

جميل تقدر تطبق الاوبجكت الاول الي كنت تبيه 

Experienced MTA developer for 4 years. | MTA خبرة 4 سنين في برمجة

ليس عليك اسعاد الجميع ,
ولكن عليك بإن لا تؤذي أحداً 

=========
You do not have to make everyone happy,
But you should not hurt anyone

 

Want to contact with me?

 

Discord: JustCarry#2616 (Always there)
Skype: Live:JustCarry10 (Not always)

Posted
Just now, K̷i̷n̷g̷ x̷D̷ツ said:

ذاك كان تجريبي ض1 وذا تجريبي طبعاً ما ابيه يكتب بسويه شي ثاني 

بتوفيق لك <3 

Experienced MTA developer for 4 years. | MTA خبرة 4 سنين في برمجة

ليس عليك اسعاد الجميع ,
ولكن عليك بإن لا تؤذي أحداً 

=========
You do not have to make everyone happy,
But you should not hurt anyone

 

Want to contact with me?

 

Discord: JustCarry#2616 (Always there)
Skype: Live:JustCarry10 (Not always)

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