Mefisto_PL Posted August 2, 2013 Posted August 2, 2013 (edited) RESOLVED Edited August 2, 2013 by Guest
iMr.3a[Z]eF Posted August 2, 2013 Posted August 2, 2013 Why not using destroyElement for blip? To Visit Us Press Here: mtasa://5.9.206.180:22002
Mefisto_PL Posted August 2, 2013 Author Posted August 2, 2013 (edited) RESOLVED Edited August 2, 2013 by Guest
Moderators IIYAMA Posted August 2, 2013 Moderators 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 Do you want to improve your Lua programming skills and make less mistakes? Start with Lua Language Server! Useful functions 3x Spoiler checkPassiveTimer getScreenStartPositionFromBox getPedGender Tutorials 4x Spoiler Scaling DX Events Attach an addEventHandler on a group of elements Debugging
Mefisto_PL Posted August 2, 2013 Author Posted August 2, 2013 (edited) RESOLVED Edited August 2, 2013 by Guest
Castillo Posted August 2, 2013 Posted August 2, 2013 You can create a table containing all blips for each player, then destroy it. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Mefisto_PL Posted August 2, 2013 Author 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.
iMr.3a[Z]eF Posted August 2, 2013 Posted August 2, 2013 You mean only who is in the team allow to write this command? To Visit Us Press Here: mtasa://5.9.206.180:22002
Castillo Posted August 2, 2013 Posted August 2, 2013 What has that to do with what I said? San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Moderators IIYAMA Posted August 2, 2013 Moderators 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. Do you want to improve your Lua programming skills and make less mistakes? Start with Lua Language Server! Useful functions 3x Spoiler checkPassiveTimer getScreenStartPositionFromBox getPedGender Tutorials 4x Spoiler Scaling DX Events Attach an addEventHandler on a group of elements Debugging
Moderators IIYAMA Posted August 2, 2013 Moderators 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. Do you want to improve your Lua programming skills and make less mistakes? Start with Lua Language Server! Useful functions 3x Spoiler checkPassiveTimer getScreenStartPositionFromBox getPedGender Tutorials 4x Spoiler Scaling DX Events Attach an addEventHandler on a group of elements Debugging
Mefisto_PL Posted August 2, 2013 Author Posted August 2, 2013 Yea, I know, but I want to create it this way.. -,-
Moderators IIYAMA Posted August 2, 2013 Moderators 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 Do you want to improve your Lua programming skills and make less mistakes? Start with Lua Language Server! Useful functions 3x Spoiler checkPassiveTimer getScreenStartPositionFromBox getPedGender Tutorials 4x Spoiler Scaling DX Events Attach an addEventHandler on a group of elements Debugging
Mefisto_PL Posted August 2, 2013 Author Posted August 2, 2013 Thanks, I will try it btw if u can, look this topic: viewtopic.php?f=91&t=63033
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