Vice City: Multiplayer

Server Development => Scripting and Server Management => Topic started by: Cool on Nov 04, 2015, 12:25 PM

Title: checkpoint mark
Post by: Cool on Nov 04, 2015, 12:25 PM
is it possible to make marks when a player pick 1 check point show him next mark on map for next mark if yes how please
simple is that show him checkpoints marks on map where is next checkpoint
Title: Re: checkpoint mark
Post by: KAKAN on Nov 04, 2015, 12:30 PM
Yes, I'm at phone, will do one for you later.
Title: Re: checkpoint mark
Post by: Cool on Nov 04, 2015, 12:31 PM
Ok thanks
Title: Re: checkpoint mark
Post by: KAKAN on Nov 04, 2015, 04:08 PM
Quick suggestion: Check out rulk's Squirrel Racing, mark that thing, and convert it to checkpoints :)
Title: Re: checkpoint mark
Post by: Decent_946 on Nov 04, 2015, 05:20 PM
Quote from: KAKAN on Nov 04, 2015, 04:08 PMQuick suggestion: Check out rulk's Squirrel Racing, mark that thing, and convert it to checkpoints :)
rulk's script doesn't show next check point on MAP..
he want's to say that how to show next checkpoint on MAP..
i'll try to make one..
Title: Re: checkpoint mark
Post by: rulk on Nov 04, 2015, 06:05 PM
Squirrel Racing 1.4 Final shows a marker for the next checkpoint. Be patient I will release it when I am positive there are no bugs.

I am currently running a server hosting 1.4 Final, Have a look in your master list, look for Squirrel Racing ( I know it says Beta 2 but I don't want to change the version number yet, as I need more players to test it for me. )

If you find any bugs, please post Here (http://forum.vc-mp.org/?topic=1598.0)

My video attempt is...
https://youtu.be/zQOekVA4zDo

In the meantime, if you wish to create a marker on the radar, you can use CreateMarker (http://wiki.vc-mp.org/wiki/Scripting/Squirrel/Functions/CreateMarker) and DestroyMarker (http://wiki.vc-mp.org/wiki/Scripting/Squirrel/Functions/DestroyMarker). Map icons can be found Here (http://wiki.vc-mp.org/wiki/Map_Icons)

Create an array to hold each player's marker id
MyMarker <- array( 100, 0 );

Place the marker into a array index, something like
MyMarker[ player.ID ] = CreateMarker( world, pos, scale, color, SpriteId );

Remember to clean up, and Destroy the marker when your done with it.
DestroyMarker( MyMarker[ player.ID ] );
Title: Re: checkpoint mark
Post by: Decent_946 on Nov 06, 2015, 07:31 PM
Great Work @rulk as always you do.. :)
Title: Re: checkpoint mark
Post by: Cool on Nov 06, 2015, 07:32 PM
Locked