Jump to content

problem onMarkerHit


Dolinho

Recommended Posts

when a player calls the police generates a cylinder in himself

But when i enter the cylinder who first called the first is destroyed but the cylinder of the second player is not destroyed.

help help

:cry:

Call = {} 
  
local x,y,z = getElementPosition( client ) 
marker = createMarker(  x, y, z, "arrow", 0.5, 0, 0, 255, 255) 
attachElementToElement ( marker, client, 0, 0, 1.5 ) 
  
function blipes() 
  if (isElement(Call[marker])) then 
   destroyElement(Call[marker])  
      end 
 end  
 addEventHandler("onPlayerQuit",getRootElement(),blipes) 

Edited by Guest
Link to comment
when a player calls the police generates a cylinder in himself

But when i enter the cylinder who first called the first is destroyed but the cylinder of the second player is not destroyed

what do you mean with this? when a player enters the cylinder the marker is destroyed?

anything else. what you do with the table called 'Call' is wrong;

table.insert -- this works to insert a value into a table 

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