[FilterScript] [FS] Advanced GPS - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (
https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] [FS] Advanced GPS (
/showthread.php?tid=119011)
[FS] Advanced GPS -
Correlli - 06.01.2010
This is advanced GPS system which allows you to set a checkpoint anywhere on the map by using RMB (right mouse button) on the map (ESC -> Map).
Videos:
Advanced GPS
Credits:
-
ssǝן‾ʎ for
foreach function
-
dice7 for the
idea
Download:
Click me!
Other:
I've changed the player and vehicle limit, you can configure it to your own (in the mapgps.pwn file):
pawn Код:
#if defined MAX_PLAYERS
#undef MAX_PLAYERS
#define MAX_PLAYERS (20) // change it to your own amount.
#endif
#if defined MAX_VEHICLES
#undef MAX_VEHICLES
#define MAX_VEHICLES (100) // change it to your own amount.
#endif
There could be a problem with setting player's position in the gamemode or other filterscript so i suggest that you use
_SetPlayerPos function with
CallRemoteFunction.
_SetPlayerPos function won't call the
OnPlayerClickMap callback.
So you could use this in your gamemode/other filterscript (if you're using this filterscript):
pawn Код:
stock SetPlayerPosition(playerid, Float:x, Float:y, Float:z) CallRemoteFunction("_SetPlayerPos", "ifff", playerid, x, y, z);
Please report if you find any bugs.
Re: [FS] Advanced GPS -
RyDeR` - 06.01.2010
Not tested, but looks very nice
Re: [FS] Advanced GPS -
sXecookie - 06.01.2010
Nice.
But why have this when it's already a big dot?
Re: [FS] Advanced GPS -
V1ceC1ty - 06.01.2010
Quote:
Originally Posted by sXecookie
Nice.
But why have this when it's already a big dot?
|
It's good but as said here I don't really see a point.
Re: [FS] Advanced GPS -
Correlli - 06.01.2010
Quote:
Originally Posted by sXecookie
Nice.
But why have this when it's already a big dot?
|
Quote:
Originally Posted by V1ceC1ty
It's good but as said here I don't really see a point.
|
In PAWN you can do many things with checkpoints but you can't with that black/red dot.
Re: [FS] Advanced GPS -
RenisiL - 06.01.2010
Very nice, Correlli
Re: [FS] Advanced GPS -
Striker_Moe - 06.01.2010
How the fuck did you code OnPlayerClickMap? Is there any way to use it for other things? Iґd love it if you could PM me about it or add me on MSN (mo3@live.de)
Re: [FS] Advanced GPS -
Correlli - 06.01.2010
Quote:
Originally Posted by Mo3
How the fuck did you code OnPlayerClickMap?
|
Well, you have the source code, you're welcomed to check it out. But i'll explain to you anyway: i'm using OnPlayerUpdate to check player's old position with the new one, difference in old and new X and old and new Y coordination.
There could be a problem with setting player's position in the gamemode or other filterscript so i suggest that you use
_SetPlayerPos function with
CallRemoteFunction.
_SetPlayerPos function won't call the
OnPlayerClickMap callback.
So you could use this in your gamemode/other filterscript (if you're using this filterscript):
pawn Код:
stock SetPlayerPosition(playerid, Float:x, Float:y, Float:z) CallRemoteFunction("_SetPlayerPos", "ifff", playerid, x, y, z);
Quote:
Originally Posted by Mo3
Is there any way to use it for other things?
|
It sure is, i'm planning on something new with this, i have a few ideas already.
Re: [FS] Advanced GPS -
patchkinson - 06.01.2010
nice
Re: [FS] Advanced GPS -
_Gangster_ - 06.01.2010
Looks nice,good job.