23.11.2010, 19:01
Yea ,on exit DM right?
But i also have something at the AutofixSystem....
fix = SetTimer("AutoFix",etc...)
Damn i hate Pvars so much!
But i also have something at the AutofixSystem....
pawn Код:
public AutoFix() {
for(new playerid=0; playerid<MAX_PLAYERS; playerid++) {
if(IsPlayerConnected(playerid)) {
new Float:health, cid;
if (IsPlayerInAnyVehicle(playerid)) {
cid = GetPlayerVehicleID(playerid);
GetVehicleHealth(cid, health);
if (health < 999) {
RepairVehicle(GetPlayerVehicleID(playerid));
if(GetPVarInt(playerid, "InDM"))
{
KillTimer(fix);
}
}
}
}
}
return 1;
}
Damn i hate Pvars so much!