27.04.2012, 15:47
pawn Код:
new bool:a[MAX_PLAYERS];
//
public OnVehicleDamageStatusUpdate(vehicleid, playerid) {
new Float:v;
GetVehicleHealth(vehicleid, v);
if(v <= 300 && a[playerid] == false) {
SendClientMessage(playerid, -1, "Motorul sa stricat,poti suna mecanicul!");
SetVehicleParamsEx(vehicleid, VEHICLE_PARAMS_OFF, 0, 0, 0, VEHICLE_PARAMS_ON, 0, 0);
SetVehicleHealth(vehicleid, 300);
a[playerid] = true;
}
return 1;
}