Pvars
#3

Yea ,on exit DM right?
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;
}
fix = SetTimer("AutoFix",etc...)
Damn i hate Pvars so much!
Reply


Messages In This Thread
Pvars - by ColdXX - 23.11.2010, 18:48
Re: Pvars - by Zh3r0 - 23.11.2010, 18:57
Re: Pvars - by ColdXX - 23.11.2010, 19:01
Re: Pvars - by Zh3r0 - 23.11.2010, 19:13
Re: Pvars - by ColdXX - 23.11.2010, 19:18

Forum Jump:


Users browsing this thread: 2 Guest(s)