Jump to content

مساعده


Recommended Posts

32 minutes ago, Abdul KariM said:

local hydra = { } 

addEventHandler ( "onVehicleStartEnter" , root , function ( )
if getTeamName( getPlayerTeam ( source ) == "SWAT" then
	if getElementModel ( source ) == 520  then 
	if isElement ( hydra [ source ] ) ) then destroyElement ( hydra [ source ] ) end 
		hydra [ source ] = createBlipAttachedTo ( source , 9 , 0,2,255,0,0,255,0,16383.0,getTeamFromName("SWAT"))
    end
  end
end 
) ;

addEventHandler ( "onVehicleStartExit" , root , function ( ) 
	if ( getElementModel ( source ) == 520 and isElement ( hydra [ source ] ) ) then 
		destroyElement ( hydra [ source ] ) 
		hydra [ source ] = nil
	end
end )

 

فيها نفس المشكله

 

14 minutes ago, salh said:

جاكسون انت تبيه اول ما يركب الهايدرا تختفي ولا بس يسوي علامة؟

اول لما الاعيب يدخل الهيدرا من تيم سوات مثلا يسوي علامه في الردار الي تحت علي الشمال و لما ينزل من الهيدرا العلامه تختفي

Link to comment
1 minute ago, salh said:

يعني ما تبيها تختفي؟

العلامه مو الهيدرا .. و تقريبا الفنكشن الي يخلي العلامه تختفي موجود و شغال تمام المشكله بس الحين في ان نخلي العلامه تظهر لتيم معين مو لكل الاعبين الي يركبو هيدرا

Edited by jakson
Link to comment
local hydra = { } 

addEventHandler ( "onVehicleStartEnter" , root ,
	function ( )

	if getTeamName ( getPlayerTeam ( source ) ) == "SWAT" then

	if getElementModel ( source ) == 520  then 

	if isElement ( hydra [ source ] ) then destroyElement ( hydra [ source ] ) end 
	
	hydra [ source ] = createBlipAttachedTo ( source , 9 , 0,2,255,0,0,255,0,16383.0,getTeamFromName("SWAT"))
			end
		end
	end 
	) 

addEventHandler ( "onVehicleStartExit" , root , function ( ) 
	if ( getElementModel ( source ) == 520 and isElement ( hydra [ source ] ) ) then 
		destroyElement ( hydra [ source ] ) 
		hydra [ source ] = nil
	end
end )

 

Link to comment
29 minutes ago, Abdul KariM said:

local hydra = { } 

addEventHandler ( "onVehicleStartEnter" , root ,
	function ( )

	if getTeamName ( getPlayerTeam ( source ) ) == "SWAT" then

	if getElementModel ( source ) == 520  then 

	if isElement ( hydra [ source ] ) then destroyElement ( hydra [ source ] ) end 
	
	hydra [ source ] = createBlipAttachedTo ( source , 9 , 0,2,255,0,0,255,0,16383.0,getTeamFromName("SWAT"))
			end
		end
	end 
	) 

addEventHandler ( "onVehicleStartExit" , root , function ( ) 
	if ( getElementModel ( source ) == 520 and isElement ( hydra [ source ] ) ) then 
		destroyElement ( hydra [ source ] ) 
		hydra [ source ] = nil
	end
end )

 

بيه خطء ... خلاص اخي لا داعي لتعبك معي مشكور...

 

Link to comment

الدي بوق ايش يقول لان كان فيه قوس زايد وحذفته 

local hydra = { } 

addEventHandler ( "onVehicleStartEnter" , root ,

	function (  )

	if not getTeamFromName( "SWAT" ) then return end

	if getElementModel ( source ) == 520  then 

	if isElement ( hydra [ source ] ) then destroyElement ( hydra [ source ] ) end 
	
	hydra [ source ] = createBlipAttachedTo ( source , 9 , 0,2,255,0,0,255,0,16383.0,getTeamFromName("SWAT"))
	
		end
	end 
	) 

addEventHandler ( "onVehicleStartExit" , root , function ( ) 
	if ( getElementModel ( source ) == 520 and isElement ( hydra [ source ] ) ) then 
		destroyElement ( hydra [ source ] ) 
		hydra [ source ] = nil
	end
end 
)

هذا بيشتغل ان شاء الله

Edited by Abdul KariM
  • Thanks 1
Link to comment
41 minutes ago, Abdul KariM said:

الدي بوق ايش يقول لان كان فيه قوس زايد وحذفته 


local hydra = { } 

addEventHandler ( "onVehicleStartEnter" , root ,

	function (  )

	if not getTeamFromName( "SWAT" ) then return end

	if getElementModel ( source ) == 520  then 

	if isElement ( hydra [ source ] ) then destroyElement ( hydra [ source ] ) end 
	
	hydra [ source ] = createBlipAttachedTo ( source , 9 , 0,2,255,0,0,255,0,16383.0,getTeamFromName("SWAT"))
	
		end
	end 
	) 

addEventHandler ( "onVehicleStartExit" , root , function ( ) 
	if ( getElementModel ( source ) == 520 and isElement ( hydra [ source ] ) ) then 
		destroyElement ( hydra [ source ] ) 
		hydra [ source ] = nil
	end
end 
)

هذا بيشتغل ان شاء الله

مشكور اخي <3

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