dylan4021

mostrar posicão(old)

May 31st, 2011
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.57 KB | None | 0 0
  1.         new string[256];
  2.         new Float:POS[4];
  3.         new vehicleid = GetPlayerVehicleID(playerid);
  4.         if(!IsPlayerInAnyVehicle(playerid))
  5.     {
  6.         GetPlayerPos(playerid, POS[0], POS[1], POS[2]);
  7.         GetPlayerFacingAngle(playerid, POS[3]);
  8.     }
  9.         else
  10.     {
  11.         GetVehiclePos(vehicleid, POS[0], POS[1], POS[2]);
  12.         GetVehicleZAngle(vehicleid, POS[3]);
  13.     }
  14.         format(string, sizeof(string), "X = %f, {FFFFFF}Y = %f, {FF0000}Z = %f, {0066FF}R = %f, {FFFF00}INT: %d", POS[0], POS[1], POS[2], POS[3], GetPlayerInterior(playerid));
  15.         SendClientMessage(playerid, 0x00FF00AA, string);
  16.         return 1;
  17.     }
Advertisement
Add Comment
Please, Sign In to add comment