SetPlayerVelocity calculated with GetPlayerFacingAngle
#2

pawn Код:
if (strcmp("/gofast", cmdtext, true, 10) == 0)
{
  if(IsPlayerInAnyVehicle(playerid))
  {
    new Float:x, Float:y, Float:z;
    GetVehicleVelocity(GetPlayerVehicleID(playerid),x,y,z);
    x = (x + 2)*2;
    y = (y + 2)*2;
    z = (z + 2)*2;
    SetVehicleVelocity(GetPlayerVehicleID(playerid),x,y,z);
  }
  return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)