29.09.2012, 02:59
Lol, alot of un required stuff. all you need do is that.
pawn Код:
new fixtimer[MAX_PLAYERS],bool:actived[MAX_PLAYERS];
CMD:autofix(playerid)
{
if(actived[playerid]) return SendClientMessage(playerid,-1,"disabled"),KillTimer(fixtimer[playerid]),actived[playerid] = false;
fixtimer[playerid] = SetTimerEx("fixt",1000,true,"i",playerid);
actived[playerid] = true;
SendClientMessage(playerid,-1,"actived")
return 1;
}
forward fixt(playerid);
public fixt(playerid)
{
if(!IsPlayerInAnyVehicle(playerid)) return 0;
RepairVehicle(GetPlayerVehicleID(playerid));
return 1;
}