jakson Posted June 2, 2019 Author Share Posted June 2, 2019 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
jakson Posted June 2, 2019 Author Share Posted June 2, 2019 (edited) 1 minute ago, salh said: يعني ما تبيها تختفي؟ العلامه مو الهيدرا .. و تقريبا الفنكشن الي يخلي العلامه تختفي موجود و شغال تمام المشكله بس الحين في ان نخلي العلامه تظهر لتيم معين مو لكل الاعبين الي يركبو هيدرا Edited June 2, 2019 by jakson Link to comment
Abdul KariM Posted June 2, 2019 Share Posted June 2, 2019 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
jakson Posted June 2, 2019 Author Share Posted June 2, 2019 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
Abdul KariM Posted June 2, 2019 Share Posted June 2, 2019 (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 June 2, 2019 by Abdul KariM 1 Link to comment
jakson Posted June 2, 2019 Author Share Posted June 2, 2019 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
Abdul KariM Posted June 2, 2019 Share Posted June 2, 2019 حياك , بس ترا ماراح تظهر الا لتيم سوات فقط 1 Link to comment
Guest Posted June 2, 2019 Share Posted June 2, 2019 (edited) لاا شيء ... Edited June 2, 2019 by Guest =\ كيف حالك ؟ Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now