25.06.2012, 11:32
pawn Код:
if (newkeys & KEY_HORN)
{
if(IsPlayerInAnyVehicle(playerid))
{
new VehicleID,Float:B;
VehicleID = GetPlayerVehicleID(playerid);
GetVehicleZAngle(VehicleID,B);
SetVehicleZAngle(VehicleID,B);
SetVehicleVelocity(VehicleID, 0.0, 0.0, 0.2);
SetVehicleAngularVelocity(VehicleID,0,0,0);
}
return 1;
}
if(newkeys & KEY_YES)
{
new veh = GetPlayerVehicleID(playerid);
new Float:x,Float:y,Float:z;
GetVehiclePos(veh,x,y,z);
SetVehiclePos(veh,x,y,z+3);
return 1;
}