09.08.2011, 15:31
pawn Код:
public StartFixing(playerid, vehicleid)
{
new engine, lights, alarm, doors, bonnet, boot, objective;
GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
if(bonnet) return SendClientMessage(playerid, 0xFF0000AA, "[ERROR] You have to open your bonnet first");
if(engine) return SendClientMessage(playerid, 0xFF0000AA, "[ERROR] You have to turn off your engine first");
ApplyAnimation(playerid, "BD_Fire", "BD_Panic_Loop", 2, 1, 0, 0, 1, 0, 1);
return 1;
}