26.07.2012, 04:04
Try
pawn Код:
if(PRESSED(KEY_SUBMISSION))
{
if(IsPlayerInAnyVehicle(playerid))
{
new Float:X, Float:Y, Float:Z, Float:Angle;
RepairVehicle ( GetPlayerVehicleID ( playerid ) );
SetVehicleHealth ( GetPlayerVehicleID ( playerid ), 9999.0 );
GetVehicleZAngle( GetPlayerVehicleID ( playerid ), Angle );
SetVehicleZAngle( GetPlayerVehicleID ( playerid ), Angle );
AddVehicleComponent( GetPlayerVehicleID ( playerid ), 1010 );
}
else
{
SendClientMessage(playerid, red, "You need to be in any Vehicle !");
}
}