[HELP] System GPS. [Read Please]
#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


Messages In This Thread
[HELP] System GPS. [Read Please] - by Adeiilson - 11.10.2009, 19:46
Re: [HELP] System GPS. [Read Please] - by Imran.Abbas - 11.10.2009, 20:01
Re: [HELP] System GPS. [Read Please] - by Adeiilson - 13.10.2009, 00:12
Re: [HELP] System GPS. [Read Please] - by (.Aztec); - 13.10.2009, 01:24
Re: [HELP] System GPS. [Read Please] - by virspector - 13.10.2009, 06:47
Re: [HELP] System GPS. [Read Please] - by (Jeff) - 13.10.2009, 11:26
Re: [HELP] System GPS. [Read Please] - by Correlli - 13.10.2009, 12:36
Re: [HELP] System GPS. [Read Please] - by Jefff - 13.10.2009, 13:35
Re: [HELP] System GPS. [Read Please] - by Adeiilson - 13.10.2009, 14:56
Re: [HELP] System GPS. [Read Please] - by (.Aztec); - 13.10.2009, 16:08

Forum Jump:


Users browsing this thread: 1 Guest(s)