Calculate position on vehicle
#6

This command will give you the Vehicle Pos:

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
     if(strcmp(cmdtext, "/getvehiclepos", true) == 0)
     {
          new currentveh;
          currentveh = GetPlayerVehicleID(playerid);

          new Float:vehx, Float:vehy, Float:vehz;
          GetVehiclePos(currentveh, vehx, vehy, vehz);

          new vehpostext[96];
          format(vehpostext, sizeof(vehpostext), "The current vehicle positions are: %f, %f, %f pos", vehx, vehy, vehz);

          SendClientMessage(playerid, 0xFFFFFFFF, vehpostext);
          return 1;
     }

     return 0;
}
Reply


Messages In This Thread
Calculate position on vehicle via offset[unsolved][MATHS] - by ikkentim - 18.08.2012, 19:58
Re: Calculate position on vehicle - by ikkentim - 20.08.2012, 16:34
Re: Calculate position on vehicle - by playbox12 - 20.08.2012, 16:51
Re: Calculate position on vehicle - by ThePhenix - 20.08.2012, 16:54
Re: Calculate position on vehicle - by ikkentim - 20.08.2012, 16:58
Re: Calculate position on vehicle - by ThePhenix - 20.08.2012, 17:10
Re: Calculate position on vehicle - by ikkentim - 20.08.2012, 17:24
Re: Calculate position on vehicle - by Kar - 20.08.2012, 17:35
Re: Calculate position on vehicle - by ikkentim - 20.08.2012, 22:25
Re: Calculate position on vehicle - by Ranama - 20.08.2012, 22:48

Forum Jump:


Users browsing this thread: 1 Guest(s)