Sign in to follow this  
jakson

مساعده

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:

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

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

Share this post


Link to post

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

Share this post


Link to post
Posted (edited)
1 minute ago, salh said:

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

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

Edited by jakson

Share this post


Link to post
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 )

 

Share this post


Link to post
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 )

 

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

 

Share this post


Link to post
Posted (edited)

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

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

Share this post


Link to post
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

Share this post


Link to post

حياك , بس ترا ماراح تظهر الا لتيم سوات فقط

  • Thanks 1

Share this post


Link to post
Posted (edited)

لاا شيء ...

Edited by DABL
=\ كيف حالك ؟

Share this post


Link to post

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.