relaxx Posted January 18, 2020 Share Posted January 18, 2020 it works but its make a lot of bug function showPlayers(source) local myBlip = {} for k, v in ipairs(getElementsByType("player")) do if not(v == source)then if(getPlayerTeam(v) == getPlayerTeam (source)) then myBlip[v] = createBlipAttachedTo (v, 4 ) elseif(getPlayerTeam(v) ~= getPlayerTeam (source)) then myBlip[v] = createBlipAttachedTo (v, 3 ) end end end end Link to comment
JeViCo Posted January 19, 2020 Share Posted January 19, 2020 1) Try to use source as the variable name. It may confuse you in future (see pre-defined variables) 2) not (v == source) is similar to v ~= source. Technically the last one is more correct. Also you didn't mention what bugs appear Link to comment
relaxx Posted February 1, 2020 Author Share Posted February 1, 2020 if a player die then the marker is stay on the location where he die 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