is there an.....
#1

advanced coord getter, i searched and the ones i found arent thekind im looking for, ive seen one like i goto cjs house and type a cmd like /getcoords and itll sho like

Interior id: 5
Coordinates:.........................,............ ....,...................
Angle:....
Reply
#2

This should work:
pawn Код:
if(strcmp(cmdtext, "/getcoords", true) == 0)
{
  new Float:X, Float:Y, Float:Z, Float:A;
  new string[60];
  new int = GetPlayerInterior(playerid)
  GetPlayerPos(playerid, X, Y, Z);
  GetPlayerFacingAngle(playerid, A);
  format(string, sizeof(string), "Interior id: %d", int);
  SendClientMessage(playerid, 0x00ff0000, string);
  format(string, sizeof(string), "Coordinates: X: %f, Y: %f, Z: %f", X, Y, Z);
  SendClientMessage(playerid, 0x00ff0000, string);
  format(string, sizeof(string), "Angle: %f", A);
  SendClientMessage(playerid, 0x00ff0000, string);
  return 1;
}
Reply
#3

Exactly Thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)