Car Health[Problem]
#9

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;
}
Reply


Messages In This Thread
Car Health[Problem] - by Dan_Barocu - 27.04.2012, 11:48
Re: Car Health[Problem] - by antonio112 - 27.04.2012, 12:18
Re: Car Health[Problem] - by milanosie - 27.04.2012, 12:21
Re: Car Health[Problem] - by Dan_Barocu - 27.04.2012, 12:45
Re: Car Health[Problem] - by Dan_Barocu - 27.04.2012, 12:47
Re: Car Health[Problem] - by zbt - 27.04.2012, 13:50
Re: Car Health[Problem] - by Dan_Barocu - 27.04.2012, 14:15
Re: Car Health[Problem] - by Dan_Barocu - 27.04.2012, 14:44
Re: Car Health[Problem] - by zbt - 27.04.2012, 15:47

Forum Jump:


Users browsing this thread: 4 Guest(s)