Mefisto_PL Posted August 2, 2013 Share Posted August 2, 2013 (edited) RESOLVED Edited August 2, 2013 by Guest Link to comment
iMr.3a[Z]eF Posted August 2, 2013 Share Posted August 2, 2013 Why not using destroyElement for blip? Link to comment
Mefisto_PL Posted August 2, 2013 Author Share Posted August 2, 2013 (edited) RESOLVED Edited August 2, 2013 by Guest Link to comment
Moderators IIYAMA Posted August 2, 2013 Moderators Share Posted August 2, 2013 This is at least one mistake. for blipIndex, blipValue in pairs ( blipy ) do if blipValue == blip then destroyElement ( blip ) break end end Link to comment
Mefisto_PL Posted August 2, 2013 Author Share Posted August 2, 2013 (edited) RESOLVED Edited August 2, 2013 by Guest Link to comment
Castillo Posted August 2, 2013 Share Posted August 2, 2013 You can create a table containing all blips for each player, then destroy it. Link to comment
Mefisto_PL Posted August 2, 2013 Author Share Posted August 2, 2013 In this, I can't because I want to create it only visible for one team. It's created when player type another command and I want to remove that blip when player type this command. Link to comment
iMr.3a[Z]eF Posted August 2, 2013 Share Posted August 2, 2013 You mean only who is in the team allow to write this command? Link to comment
Castillo Posted August 2, 2013 Share Posted August 2, 2013 What has that to do with what I said? Link to comment
Moderators IIYAMA Posted August 2, 2013 Moderators Share Posted August 2, 2013 You can do it as solidsnake said, But I will recommend you to create it at client side cause: - Reduce amount of elements at serverside.- His own created blips don't have to be deleted.- And especial easier to manage. Link to comment
Mefisto_PL Posted August 2, 2013 Author Share Posted August 2, 2013 You can't help me that way? Link to comment
Moderators IIYAMA Posted August 2, 2013 Moderators Share Posted August 2, 2013 You can't help me that way? Learn lua ftw! Especially tables, that is the one thing you need to make clean fast systems. Link to comment
Mefisto_PL Posted August 2, 2013 Author Share Posted August 2, 2013 Yea, I know, but I want to create it this way.. -,- Link to comment
Moderators IIYAMA Posted August 2, 2013 Moderators Share Posted August 2, 2013 If you want that, you have to give every player a blip and use this function to manage and reduce the amount of elements: https://wiki.multitheftauto.com/wiki/Se ... tVisibleTo Link to comment
Mefisto_PL Posted August 2, 2013 Author Share Posted August 2, 2013 Thanks, I will try it btw if u can, look this topic: viewtopic.php?f=91&t=63033 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