Vice City: Multiplayer

Server Development => Scripting and Server Management => Topic started by: Spice on Aug 06, 2015, 07:33 AM

Title: Creating and removing markers
Post by: Spice on Aug 06, 2015, 07:33 AM
Is it possible that i creat and remove markers during game.....
For example a marker of gun if i use it on every ammunation and then i want to remove a specific ammunation's marker.....is it possible to do that without closing or restarting server......



I was thinking to store all the markers and their locs in database like id 1 marker of  downtown ammunation and 2 of north point mall .......like this...? am i right?....if yes then also tell me if there is any other easy and alternate idea.....?

ThankX
Title: Re: Creating and removing markers
Post by: Thijn on Aug 06, 2015, 09:21 AM
Yes, you can remove a marker using DestroyMarker( id )
Title: Re: Creating and removing markers
Post by: Spice on Aug 06, 2015, 09:30 AM
so i should use method that i have posted.....(i.e database)...?
Title: Re: Creating and removing markers
Post by: DizzasTeR on Aug 06, 2015, 09:52 AM
Why database? just use an array to store all the locations of markers... and then use it accordingly.
Title: Re: Creating and removing markers
Post by: Thijn on Aug 06, 2015, 09:57 AM
Quote from: Doom_Killer on Aug 06, 2015, 09:52 AMWhy database? just use an array to store all the locations of markers... and then use it accordingly.
This, unless they change a lot, which I doubt.