SA-MP Forums Archive
[FilterScript] [FS] GPS System - 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] GPS System (/showthread.php?tid=102042)



[FS] GPS System - Jefff - 13.10.2009

Simply GPS system
usage:
Код:
/gps [playerid / off]






Links
http://pastebin.com/f6549f713
http://www.sendspace.com/file/bmi8ra
http://rapidshare.com/files/292456756/GPS.rar.html



Re: [FS] GPS - MPKaboose - 13.10.2009

some more info?


Re: [FS] GPS - Jefff - 13.10.2009

It sets a little marker under targetid and under screen is gametext with distance to second player


Re: [FS] GPS System - Jese - 13.10.2009

You could post some screens.


Re: [FS] GPS System - [03]Garsino - 13.10.2009

No screens=less downloads.


Re: [FS] GPS System - Jefff - 13.10.2009

It is hard to download & test?


Re: [FS] GPS System - [03]Garsino - 13.10.2009

Quote:
Originally Posted by Jefff
It is hard to download & test?
Of course not, but people wont download without screens..


Re: [FS] GPS System - Jefff - 13.10.2009

Ehm ok lazy peoples :P first post


Re: [FS] GPS System - cruising - 16.02.2010

Hello!
im trying to integrate this in my GM and make so only taxi drivers can use it.
were should i put
Код:
strtok(const string[], &index)
{
	new length = strlen(string);
	while ((index < length) && (string[index] <= ' '))
	{
		index++;
	}

	new offset = index;
	new result[20];
	while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
	{
		result[index - offset] = string[index];
		index++;
	}
	result[index - offset] = EOS;
	return result;
}

stock GetDistanceBetweenPlayers(playerid,playerid2){
	new Float:x1,Float:y1,Float:z1,Float:x2,Float:y2,Float:z2;
	new Float:dis;
	GetPlayerPos(playerid,x1,y1,z1);
	GetPlayerPos(playerid2,x2,y2,z2);
	dis = floatsqroot(floatpower(floatabs(floatsub(x2,x1)),2)+floatpower(floatabs(floatsub(y2,y1)),2)+floatpower(floatabs(floatsub(z2,z1)),2));
	return floatround(dis);
}
the rest is no problem i think


Re: [FS] GPS System - MaykoX - 16.02.2010

Nice !

~MaykoX