Advertisement
dylan4021

mostrar posição

May 31st, 2011
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.61 KB | None | 0 0
  1.     if(!strcmp("/pos", cmdtext, true))
  2.     {
  3.         new string[256];
  4.         new Float:POS[4];
  5.         new vehicleid = GetPlayerVehicleID(playerid);
  6.         if(!IsPlayerInAnyVehicle(playerid))
  7.     {
  8.         GetPlayerPos(playerid, POS[0], POS[1], POS[2]);
  9.         GetPlayerFacingAngle(playerid, POS[3]);
  10.     }
  11.         else
  12.     {
  13.         GetVehiclePos(vehicleid, POS[0], POS[1], POS[2]);
  14.         GetVehicleZAngle(vehicleid, POS[3]);
  15.     }
  16.         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));
  17.         SendClientMessage(playerid, 0x00FF00AA, string);
  18.         return 1;
  19.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement