SA-MP Forums Archive
[HELP] System GPS. [Read Please] - 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: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP] System GPS. [Read Please] (/showthread.php?tid=101735)



[HELP] System GPS. [Read Please] - Adeiilson - 11.10.2009

Hello,
I'm looking for a GPS system, anyone know where I can find?


Re: [HELP] System GPS. [Read Please] - Imran.Abbas - 11.10.2009

Search before makeing new topic

Anyways try this
http://forum.sa-mp.com/index.php?topic=103900.0


Re: [HELP] System GPS. [Read Please] - Adeiilson - 13.10.2009

Quote:
Originally Posted by Imran.Abbas[Agent
]
Search before makeing new topic

Anyways try this
http://forum.sa-mp.com/index.php?topic=103900.0
Friend, you almost helped me, more wanted a GPS system you are looking for the player.
Example: /GPS [id]

Help-me ?


Re: [HELP] System GPS. [Read Please] - (.Aztec); - 13.10.2009

Like /gps [id] then it sets a marker?


Re: [HELP] System GPS. [Read Please] - virspector - 13.10.2009

Maybe like this:

pawn Код:
OnPlayerCommandText(playerid, cmdtext[])
{
   if(!strcmp("/gps 1", cmdtext, true))
   {
     SetPlayerCheckpoint(playerid, x, y, z, 1);
     //Change x with the x position, same as y and z. Then, change 1 with the size of the red marker

     return 1; //Don't Forget this!
   }
   return 0; //Don't forget this too!
}
Hopez helpz....


Re: [HELP] System GPS. [Read Please] - (Jeff) - 13.10.2009

Quote:
Originally Posted by virspector
Maybe like this:

pawn Код:
OnPlayerCommandText(playerid, cmdtext[])
{
  if(!strcmp("/gps 1", cmdtext, true))
  {
     SetPlayerCheckpoint(playerid, x, y, z, 1);
     //Change x with the x position, same as y and z. Then, change 1 with the size of the red marker

     return 1; //Don't Forget this!
  }
  return 0; //Don't forget this too!
}
Hopez helpz....
Dude thats a totally messed up code!
[pawn]
if(strcmp(cmd, "/goto", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "USAGE: /gps [playerid/PartOfName]");
return 1;
}
new Float:idx,Float:idy,Float:idz;
new id;
id = ReturnUser(tmp);
if (IsPlayerConnected(id))
{
if(plo != INVALID_PLAYER_ID)
{

GetPlayerPos(plo, plocx, plocy, plocz);
SetPlayerCheckpoint(playerid, idx, idy, idz);


}
}
else
{
format(string, sizeof(string), " %d is not an active player.", id);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
}
}
return 1;
}
I'm not totally sure this is gonna work i extracted some bits from my gm and put some junk in ;p


Re: [HELP] System GPS. [Read Please] - Correlli - 13.10.2009

Quote:
Originally Posted by (Jeff)
Dude thats a totally messed up code!
Yours is nothing better. You gave him a bunch of your code, if he's going to put that to his script, there are much possibilities that he'll get some errors because you didn't defined some variables/functions and other things in your code.


Re: [HELP] System GPS. [Read Please] - Jefff - 13.10.2009

http://forum.sa-mp.com/index.php?topic=127072.0


Re: [HELP] System GPS. [Read Please] - Adeiilson - 13.10.2009

Quote:
Originally Posted by sizeof(Sky));
Like /gps [id] then it sets a marker?
yes, for example:

/GPS [id] and had been marked in a textdraw the distance from the player to you, example:

"The Zina is 500 meters of you"

Since the meters are changing as you move closer or away from the player.

Thanks.


Re: [HELP] System GPS. [Read Please] - (.Aztec); - 13.10.2009

Use the one jeff just linked you.

http://forum.sa-mp.com/index.php?topic=127072.0