righty ok m8 thanks will have a go at that
so would i include the lines into my current script or into a separate script?
added to my current one it just crashes the editor
e.g
timer = {}
function leaving_mission_area_init(e)
second = 0
tel_icon_posX = 20
tel_icon_posy = 30
tel_icon_sizeX = 60
tel_icon_sizey =20
tel_sprite = LoadImage("scriptbank\\images\\oobtp\\area_restricted.png")
tel_icon = CreateSprite(tel_sprite)
SetSpriteSize (tel_icon,tel_icon_sizeX,tel_icon_sizey)
SetSpriteDepth (tel_sprite, 100)
SetSpritePosition(tel_icon,300,300)
end
timer[1] = 0
function leaving_mission_area_main(e)
if g_Entity[1]['plrinzone'] == 0 then
PasteSpritePosition(tel_icon, tel_icon_posX, tel_icon_posy)
Text(10,10,1,"Time:"..second)
end
if timer[1] == nil then
timer[1] = g_Time + 5000
elseif g_Time > timer[1] then
timer[1] = g_Time + 5000
second = second + 1
if second >= 3 then
TransportToIfUsed(e)
second = 0
else
g_Entity[1]['plrinzone'] = 1
end
end
end
Intel i5 4950 Quad core 3.3ghz AMD FX 6300 x6 cores 3.5ghz(unclocked)
8gb Ram 8gb Ram
XFX R5 2gb AMD Radeon HD 6670 2gb
and a well fed mouse on a wheel
I only smile because i have absolutely no idea whats going on