Adham Posted April 21, 2016 Author Share Posted April 21, 2016 انا سويتة والاحدثبات اهي مب شغال --Police LS local markerEnter = createMarker (1352.51038, -1759.25195, 13.50781, "arrow", 1.0, 0, 0, 255, 255 ) --- Posicion del Marcador ( teleport ). addEventHandler ( "onMarkerHit",markerEnter,function (hitPlayer) if (getElementType(hitPlayer) == 'player' ) then if ( getPlayerTeam (hitPlayer) ) == getTeamFromName ( "Police LS" ) then setElementPosition (hitPlayer,203,167,1000) -- Posicion del jugador donde aparecere cuando toque el marcador. setElementInterior ( hitPlayer, 3 ) -- Interior donde aparecera el jugador. setElementRotation ( hitPlayer, 0, 0, 0 ) --Rotacion del jugador ( donde aparecera ) else outputChatBox("You are not Team 'Police LS'",hitPlayer,144, 0, 0) end end end) ----- local markerExit = createMarker (204.42232, -168.86055, 1000.52344, "arrow", 1.0, 0, 0, 255, 255 ) --- Posicion del Marcador ( teleport ). setElementInterior (markerExit, 3 ) addEventHandler ( "onMarkerHit",markerExit ,function (hitPlayer) if (getElementType(hitPlayer) == 'player' ) then if ( getPlayerTeam (hitPlayer) ) == getTeamFromName ( "Police LS" ) then setElementPosition (hitPlayer,1351,-1758,13) -- Posicion del jugador donde aparecere cuando toque el marcador. setElementInterior ( hitPlayer, 0 ) -- Interior donde aparecera el jugador. setElementRotation ( hitPlayer, 0, 0, 0 ) --Rotacion del jugador ( donde aparecera ) else outputChatBox("You are not Team 'Police LS'",hitPlayer,144, 0, 0) end end end) Link to comment
Simple. Posted April 21, 2016 Share Posted April 21, 2016 اصلا مافي افنت لماركر الخروج ماراح تتعلم بالنسخ واللصق اعملوهولو ! Link to comment
Adham Posted April 21, 2016 Author Share Posted April 21, 2016 ي اخي اوسكر عاملي واحده فوق عند مركز الشرطه وواحد اخر عن البنك .............. Link to comment
Simple. Posted April 21, 2016 Share Posted April 21, 2016 --Police LS local markerEnter = createMarker (1352.51038, -1759.25195, 13.50781, "arrow", 1.0, 0, 0, 255, 255 ) --- Posicion del Marcador ( teleport ). local markerExit = createMarker (204.42232, -168.86055, 1000.52344, "arrow", 1.0, 0, 0, 255, 255 ) --- Posicion del Marcador ( teleport ). setElementInterior (markerExit, 3 ) addEventHandler ( 'onMarkerHit',resourceRoot, function (hitPlayer) if source == markerEnter then if (getElementType(hitPlayer) == 'player' ) then if ( getPlayerTeam (hitPlayer) ) == getTeamFromName ( "Police LS" ) then setElementInterior ( hitPlayer, 3, 203,167,1000 ) setElementRotation ( hitPlayer, 0, 0, 0 ) else outputChatBox("You are not Team 'Police LS'",hitPlayer,144, 0, 0) end end elseif source == markerExit then if (getElementType(hitPlayer) == 'player' ) then if ( getPlayerTeam (hitPlayer) ) == getTeamFromName ( "Police LS" ) then setElementInterior ( hitPlayer, 0, 1351,-1758,13 ) setElementRotation ( hitPlayer, 0, 0, 0 ) else outputChatBox("You are not Team 'Police LS'",hitPlayer,144, 0, 0) end end 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