How to /flip using the alt key?
#9

Indeed, simply do similiar but add on to the Z co-ordinates

pawn Код:
public OnPlayerKeyStateChange(playerid,newkeys,oldkeys)
{
  if(IsPlayerInAnyVehicle(playerid))
  {
    if(newkeys &= 4)
    {
      new Float:ZAngle,Float:X,Float:Y,Float:Z,vehicleid;
      vehicleid = GetPlayerVehicleID(playerid);
      GetVehiclePos(vehicleid,X,Y,Z);
      GetVehicleZAngle(vehicleid,ZAngle);
      SetVehicleZAngle(vehicleid,ZAngle);
      SetVehiclePos(vehicleid,X,Y,Z+2);
    }
  }
  return 1;
}
Since we are using GetPlayerVehicleID(playerid); so much, I've used it just once in the script and stored it in a variable for use instead of calling it every time
Reply


Messages In This Thread
How to /flip using the alt key? - by ThePS3Guy - 06.08.2009, 14:46
Re: How to /flip using the alt key? - by [KML]Dabug - 06.08.2009, 15:42
Re: How to /flip using the alt key? - by ThePS3Guy - 06.08.2009, 15:48
Re: How to /flip using the alt key? - by JaTochNietDan - 06.08.2009, 15:52
Re: How to /flip using the alt key? - by ThePS3Guy - 06.08.2009, 16:05
Re: How to /flip using the alt key? - by ThePS3Guy - 06.08.2009, 16:11
Re: How to /flip using the alt key? - by JaTochNietDan - 06.08.2009, 16:13
Re: How to /flip using the alt key? - by ThePS3Guy - 06.08.2009, 16:20
Re: How to /flip using the alt key? - by JaTochNietDan - 06.08.2009, 16:25
Re: How to /flip using the alt key? - by ThePS3Guy - 06.08.2009, 16:31

Forum Jump:


Users browsing this thread: 1 Guest(s)