Norhy Posted March 5, 2012 Posted March 5, 2012 Hi. I want to create a Marker teleport. Like.. I have placed a Arrow marker near a gate in Area 69, and when i enter it i should be teleported to the other side of the gate. But, it doesn't teleport me, but the Marker.. local myMarker = createMarker(285.62497, 1820.85889, 19.00000, 'arrow', 2.0, 255, 255, 0, 150) function MarkerHit( hitElement, matchingDimension ) setElementPosition ( source, 287.85568, 1820.85620, 17.64063 ) end addEventHandler( "onMarkerHit", myMarker, MarkerHit )
drk Posted March 5, 2012 Posted March 5, 2012 Because source is the marker. local myMarker = createMarker ( 285.62497, 1820.85889, 19.000000, 'arrow', 2.0, 255, 255, 0, 150 ) function markerHit ( element, dimension ) setElementPosition ( element, 287.85568, 1820.85620, 17.64063 ) end addEventHandler ( 'onMarkerHit', myMarker, markerHit ) EPT Team Server Development: 0% Learning C++ | C++ is amazing
Norhy Posted March 5, 2012 Author Posted March 5, 2012 Lol, i copied this: addEventHandler ( "onPlayerCommand", function ( command ) if ( command == "ban" ) then if ( string.lower(getPlayerName(source)) ~= "draken" ) then outputChatBox ( ":O off bitch!", source, 255, 0, 0, false ) end end end ) Instead of the right one But working, ty for your help. You helped me many times.
drk Posted March 5, 2012 Posted March 5, 2012 Lol, i copied this: addEventHandler ( "onPlayerCommand", function ( command ) if ( command == "ban" ) then if ( string.lower(getPlayerName(source)) ~= "draken" ) then outputChatBox ( ":O off bitch!", source, 255, 0, 0, false ) end end end ) Instead of the right one LOL But working, ty for your help. You helped me many times. No problem EPT Team Server Development: 0% Learning C++ | C++ is amazing
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