[HELP] System GPS. [Read Please]
#1

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

Search before makeing new topic

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

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 ?
Reply
#4

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

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

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

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

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

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

Use the one jeff just linked you.

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


Forum Jump:


Users browsing this thread: 1 Guest(s)