Jump to content

استفسار


Recommended Posts

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̷ツ
Link to comment
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..!
Link to comment
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
)

 

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

 

Link to comment
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..!
Link to comment
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
)

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

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

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

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

Link to comment
 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..!

Edited by K̷i̷n̷g̷ x̷D̷ツ
Link to comment
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..!

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

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