[FilterScript] [FS] Advanced GPS
#8

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.
Reply


Messages In This Thread
[FS] Advanced GPS - by Correlli - 06.01.2010, 11:30
Re: [FS] Advanced GPS - by RyDeR` - 06.01.2010, 11:37
Re: [FS] Advanced GPS - by sXecookie - 06.01.2010, 11:43
Re: [FS] Advanced GPS - by V1ceC1ty - 06.01.2010, 11:47
Re: [FS] Advanced GPS - by Correlli - 06.01.2010, 11:52
Re: [FS] Advanced GPS - by RenisiL - 06.01.2010, 12:50
Re: [FS] Advanced GPS - by Striker_Moe - 06.01.2010, 13:53
Re: [FS] Advanced GPS - by Correlli - 06.01.2010, 14:08
Re: [FS] Advanced GPS - by patchkinson - 06.01.2010, 14:13
Re: [FS] Advanced GPS - by _Gangster_ - 06.01.2010, 15:01

Forum Jump:


Users browsing this thread: 2 Guest(s)