Jump to content

map help


Recommended Posts

Posted

if have map a map cod ebut marker odnt work

function resource_says_hai ()
outputChatBox ( "Metalhero says Have FUN", getRootElement(), 51, 255,255 ) 
k1 = createObject ( 8838, 3389.5720214844, -1764.0531005859, 28, 0, 0, 0 )
k2 = createObject ( 2898, 3411.4658203125, -1774.7734375, 26.377542495728, 0, 326.25, 0 )
k3 = createObject ( 2898, 3505.853515625, -1739.0093994141, 2.952540397644 )
s1 = createObject ( 2898, 3379.9379882813, -1774.4644775391, 29.452541351318, 0, 0, 0 )
s2 = createObject ( 2898, 3383.9897460938, -1774.4644775391, 29.452541351318, 0, 0, 0 )
s3 = createObject ( 2898, 3388.0126953125, -1774.4644775391, 29.452541351318, 0, 0, 0 )
s4 = createObject ( 2898, 3392.0622558594, -1774.4644775391, 29.452541351318, 0, 0, 0 )
s5 = createObject ( 2898, 3396.0676269531, -1774.4644775391, 29.452541351318, 0, 0, 0 )
s6 = createObject ( 2898, 3400.0974121094, -1774.4644775391, 29.452541351318, 0, 0, 0 )
s7 = createObject ( 2898, 3404.1044921875, -1774.4644775391, 29.452541351318, 0, 0, 0 )
s7 = createObject ( 2898, 3404.1044921875, -1774.4644775391, 29.452541351318, 0, 0, 0 )
m2 = createMarker ( 3595.6535644531, -1826.3543701172, 13, "corona", 1, 255, 255, 0, 255 )
setTimer ( nightmaker, 1000, 0 )
setWeather ( 29 )
setCloudsEnabled ( true )
setSkyGradient( 0, 255, 0, 0, 255, 255 )
setWaterColor( 51, 255 , 255 )
end 
addEventHandler("onResourceStart", getRootElement(), resource_says_hai )
function nightmaker ()
setTime ( 0, 0 )
end
setTimer(function() destroyElement ( k1 )end,30000,1)
m1 = createMarker ( 3415.6726074219, -1790.2113037109, 25.48247718811, "corona", 1, 255, 255, 0, 255 )
setTimer (outputChatBox,5000,1,"O: !!!Touch the light to Open Secret Ways!!! :O", getRootElement(), 255, 0,0 ) 
function Markery ( hitPlayer, matchingDimension )
if source == m1 then
	pojazd = getPedOccupiedVehicle ( hitPlayer )
outputChatBox ( "!!!"..pojazd.." Has Open the way!!!", getRootElement(), 51, 255,0 ) 
moveObject ( s1, 10,3379.9379882813, -1774.4644775391, 30.15, 0, 340, 0 )
moveObject ( s2, 10,3383.9897460938, -1774.4644775391, 31.60, 0, 340, 0 )
moveObject ( s3, 10,3388.0126953125, -1774.4644775391, 33.05, 0, 340, 0 )
moveObject ( s4, 10,3392.0622558594, -1774.4644775391, 34.50, 0, 340, 0 )
moveObject ( s5, 10,3396.0676269531, -1774.4644775391, 35.95, 0, 340, 0 )
moveObject ( s6, 10,3400.0974121094, -1774.4644775391, 37.40, 0, 340, 0 )
moveObject ( s7, 10,3404.1044921875, -1774.4644775391, 38.85, 0, 340, 0 )
destroyElement ( m1 ) 
end
if source == m2 then
elseif isPedInVehicle(hitplayer)  then
local vehicle=getPedOccupiedVehicle(hitplayer)
setElementPosition (vehicle , 328.11853027344, -3056.39453125, 635.34979248047 )
end
end
addEventHandler ( "onClientMarkerHit", getRootElement(), Markery )

Posted

any errors?

Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online!

programista php rzeszów

Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting.

Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!

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