Hey Leute iwie geht das nicht
Bei news
new MotorTimer;
new MotorSchadenA[MAX_VEHICLES];
onvehilceenter
MotorTimer = SetTimerEx("MotorSchaden",5000,true,"u",playerid);
public
forward MotorSchaden(playerid, vehicleid);
public MotorSchaden(playerid,vehicleid)
{
vehicleid = GetPlayerVehicleID(playerid);
new Float:Leben;
if(GetVehicleHealth(vehicleid,Leben) > 200)
{
Motor[vehicleid] = false;
MotorSchadenA[vehicleid] = 1;
KillTimer(MotorTimer);
}
return 1;
}
MFG gtaec