Jump to content

[Help] Marker (Done_


amm2100

Recommended Posts

Hey Guys

1st : I need to ask how can I make my markers on one group

Example :- I have 18 Marker's around the SA Map and I need to put them all with one script in easy way

2nd: is there any way to make Script when I type /makemarker , It make marker cylinder on my position and named it Marker1 , Marker2, Marker3, ...... etc

-----------------------------

Sorry for my Bad English

and Sorry Because I am noob scriptwriter , I started Lua since 2015/7/7 :D

Edited by Guest
Link to comment

1 -

Markers = { 
    -- x, y, z 
    { 0, 0, 0 }, 
    { 10, 10, 10 } 
} 
  
for i, v in ipairs ( Markers ) do 
    createMarker ( v[1], v[2], v[3] ); 
end 

2 -

count = 0; 
  
function makemarker ( thePlayer ) 
    count = count +1; 
    local pos = { getElementPosition ( thePlayer ) }; 
    _G["Marker" .. count] = createMarker ( pos[1], pos[2], pos[3] ); 
end 
addCommandHandler ( "makemarker", makemarker ) 

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