Dolinho Posted February 20, 2015 Share Posted February 20, 2015 (edited) 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 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 February 21, 2015 by Guest Link to comment
Enargy, Posted February 21, 2015 Share Posted February 21, 2015 when a player calls the police generates a cylinder in himselfBut 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
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