Jump to content

#تعديل


Adham

Recommended Posts

انا سويتة

والاحدثبات اهي

مب شغال

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

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