Jump to content

teleporters doesnt work?


Eistee

Recommended Posts

local theMarker = createMarker ( 1685.4000244141, -1463.5999755859, 12.5, "cylinder", 1, 0, 255, 85, 85, getRootElement() ) 
createBlipAttachedTo ( theMarker, 38 ) 
function ontheMarkerHit_func (hitElement) 
  
        if getElementType(hitElement) == "player" then 
            setElementPosition ( hitElement,  1038, -0.69999998807907, 1001.299987793 ) 
            outputChatBox ( "Willkommen im Premium Shop. Mit /getp [Name] kannst du Punkte abfragen.", getRootElement(), 127, 255, 127, true ) 
            setElementDimension ( hitElement, 0 )   
            setElementInterior ( hitElement, 3 ) 
            setElementRotation(hitElement,  0, 0, 0.00274658)  
        else 
        outputChatBox("Bitte steige dafür aus deinem Fahrzeug aus.", hitElement, 255, 0, 0) 
        end 
end 
addEventHandler("onMarkerHit", theMarker, ontheMarkerHit_func) 
  
  
  
  
local Teleport2 = createMarker ( 1038, -3.9000000953674, 1000.299987793, "cylinder", 1, 0, 255, 85, 85, getRootElement() ) 
setElementDimension ( Teleport2, 0 )   
setElementInterior ( Teleport2, 3 ) 
function ontheMarkerHit_func2 (hitElement) 
  
        if getElementType(hitElement) == "player" then 
            setElementPosition ( hitElement, 1685.5, -1460.6999511719, 13.5 ) 
    setElementDimension ( hitElement, 0 )   
    setElementInterior ( hitElement, 0 ) 
    setElementRotation(hitElement,  0, 0, 0)  
        else 
        outputChatBox("Bitte steige dafür aus deinem Fahrzeug aus.", hitElement, 255, 0, 0) 
        end 
end 
addEventHandler("onMarkerHit", Teleport2, ontheMarkerHit_func2) 
  
  
  
  
local Teleport3 = createMarker ( 1038.1999511719, 10.199999809265, 1000.1785888672, "cylinder", 1, 0, 127, 212, 255, getRootElement() ) 
setElementDimension ( Teleport3, 0 )   
setElementInterior ( Teleport3, 3 ) 
function ontheMarkerHit_func3 (hitElement) 
  
        if getElementType(hitElement) == "player" then 
             outputChatBox ( "Mit /pshop kannst du den Premium Shop öffnen.", getRootElement(), 127, 255, 127, true ) 
        else 
        outputChatBox("Bitte steige dafür aus deinem Fahrzeug aus.", hitElement, 255, 0, 0) 
        end 
end 
addEventHandler("onMarkerHit", Teleport3, ontheMarkerHit_func3) 
  
  

Why the teleporters doesnt work?

Nothing happens..

No Errors :(

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