ryan112 Posted September 16, 2021 Share Posted September 16, 2021 انا عندي مود طيارات للكالانات يعني لاعب لما يدخل ماركر تظهر لهو لوحة طيارات وبيختار ولوحا بشتغل بسس لتيم انا بدي كود لما لاعب ما كون في تيم يجي كلام انو هوا ليس في تيم هي كود local teamName = 'Avalanche' -- Only this team can use the spawner local car = createMarker ( -1533.974609375, 331.65972900391, 56.767894744873-2, "cylinder", 3, 0, 254, 239, 100 ) addEventHandler('onClientMarkerHit', car, function ( hitPlayer ) if ( hitPlayer == localPlayer ) and getPlayerTeam( hitPlayer ) and getTeamName( getPlayerTeam( hitPlayer ) ) == teamName then guiSetVisible ( window ,true ) showCursor( true ) guiSetInputEnabled(false) end end ) وفي مشكلة لما لاعب يدخل بسيارة عل ماركر تظهر لوحة وانا مابدي تظهر لوحة بس لاعب يكون واقف يعني مو راكب مركبة Link to comment
dEx, Posted September 16, 2021 Share Posted September 16, 2021 (edited) 1 hour ago, ryan112 said: انا عندي مود طيارات للكالانات يعني لاعب لما يدخل ماركر تظهر لهو لوحة طيارات وبيختار ولوحا بشتغل بسس لتيم انا بدي كود لما لاعب ما كون في تيم يجي كلام انو هوا ليس في تيم هي كود local teamName = 'Avalanche' -- Only this team can use the spawner local car = createMarker ( -1533.974609375, 331.65972900391, 56.767894744873-2, "cylinder", 3, 0, 254, 239, 100 ) addEventHandler('onClientMarkerHit', car, function ( hitPlayer ) if ( hitPlayer == localPlayer ) and getPlayerTeam( hitPlayer ) and getTeamName( getPlayerTeam( hitPlayer ) ) == teamName then guiSetVisible ( window ,true ) showCursor( true ) guiSetInputEnabled(false) end end ) وفي مشكلة لما لاعب يدخل بسيارة عل ماركر تظهر لوحة وانا مابدي تظهر لوحة بس لاعب يكون واقف يعني مو راكب مركبة local teamName = 'Avalanche' -- Only this team can use the spawner local car = createMarker ( -1533.974609375, 331.65972900391, 56.767894744873-2, "cylinder", 3, 0, 254, 239, 100 ) addEventHandler('onClientMarkerHit', car, function ( hitPlayer ) if ( hitPlayer == localPlayer ) and getPlayerTeam( hitPlayer ) then if isPedInVehicle ( hitPlayer ) then return outputChatBox("You Have To Be Out Of The Vehicle",255,255,255,true) end if getTeamName( getPlayerTeam( hitPlayer ) ) ~= teamName then return outputChatBox("* [Server]: You're Not In The Avalanche Team!",255,255,255) end ----- guiSetVisible ( window ,true ) showCursor( true ) guiSetInputEnabled(false) end end ) Edited September 16, 2021 by 6rB. Link to comment
ryan112 Posted September 17, 2021 Author Share Posted September 17, 2021 14 hours ago, 6rB. said: local teamName = 'Avalanche' -- Only this team can use the spawner local car = createMarker ( -1533.974609375, 331.65972900391, 56.767894744873-2, "cylinder", 3, 0, 254, 239, 100 ) addEventHandler('onClientMarkerHit', car, function ( hitPlayer ) if ( hitPlayer == localPlayer ) and getPlayerTeam( hitPlayer ) then if isPedInVehicle ( hitPlayer ) then return outputChatBox("You Have To Be Out Of The Vehicle",255,255,255,true) end if getTeamName( getPlayerTeam( hitPlayer ) ) ~= teamName then return outputChatBox("* [Server]: You're Not In The Avalanche Team!",255,255,255) end ----- guiSetVisible ( window ,true ) showCursor( true ) guiSetInputEnabled(false) end end ) مشكور صديقي 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