06.01.2010, 11:30
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):
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):
Please report if you find any bugs.
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
_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);