Jump to content

مود الصواريخ بسيرفرات الشوتر


Recommended Posts

8 minutes ago, Hakan said:

لا الاتاكر راح يكون اللاعب الي طلق الصاروخ

الي بيخرب سيارة الاعب التاني هو الصاروخ , كيف بيكون الاعب الاول اتاكر 

مب متعرف الاتاكر

Link to comment
5 minutes ago, Hakan said:

لول انا مسويها من قبل , ليه ماتجرب انت وماتتفلسف واجد الله يهديك .

انا الي اتفلسف ؟ , تمام بجربها ابشر :) 

10 minutes ago, Hakan said:

لول انا مسويها من قبل , ليه ماتجرب انت وماتتفلسف واجد الله يهديك .

قصدك كدا ؟

addEventHandler("onClientVehicleDamage", root,
	function(attacker)
		if attacker and getElementType(attacker) == "vehicle" then
			if getPedOccupiedVehicle(localPlayer) == source then
				local sourcePlayer, attackerPlayer = getVehicleController(source), getVehicleController(attacker)
				if sourcePlayer and attackerPlayer then
					setElementData(localPlayer,"killerName",getPlayerName(attackerPlayer))
				end
			end
		end
	end
)

 

Link to comment

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

-- Client 

addEventHandler ( "onClientVehicleDamage" , root , function (att) 
if ( att and isElement ( att ) and getElementType ( att ) == "player" and getVehicleController(source) ~= att )  then 
setElementData ( getVehicleController ( source ) , "killedBy" , getPlayerName ( att ) )
end
end ) 

-- Server 

addEventHandler ( "onPlayerWasted" , root , function ( ) 
if ( getElementData ( source , "killedBy" ) ) then 
outputChatBox(getPlayerName(source).." Killed By "..tostring(getElementData(source,"killedBy")))
removeElementData ( source , "killedBy" )
end
end ) ; 

 

Link to comment

Projectile/Element

bindKey -- تحط زر الاطلاق
projectile = createProjectile -- يعطيك الصاروخ
setElementData(projectile,"projectile_attacker",attacker); -- تعطي داتا للصاروخ قيمتها اللاعب اللي اطلق الصاروخ
"onClientVehicleDamage"
-- اول برامتر راح يكون الشيء اللي دمج السياره
-- تجيب الداتا حقت الشيء اللي دمج السياره
function myfunc(element)
	attacker = getElementData(element,"projectile_attacker");
  -- attacker = اللاعب اللي اطلق الصاروخ
end

 

Edited by NX_CI
Link to comment

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

addEventHandler ( "onClientVehicleDamage" , root , function (att) 
    if ( att and isElement ( att ) ) then 
      outputChatBox ( tostring ( getElementType ( att ) ) )
      end
end )

 

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