[FilterScript] [FS] GPS System
#1

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
Reply
#2

some more info?
Reply
#3

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

You could post some screens.
Reply
#5

No screens=less downloads.
Reply
#6

It is hard to download & test?
Reply
#7

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

Ehm ok lazy peoples :P first post
Reply
#9

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
Reply
#10

Nice !

~MaykoX
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)