Error autofix vehicle
#4

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;
}
Use this.
Reply


Messages In This Thread
Error autofix vehicle - by JEkvall95 - 29.09.2012, 08:13
Re: Error autofix vehicle - by RedJohn - 29.09.2012, 08:20
Re: Error autofix vehicle - by JEkvall95 - 29.09.2012, 08:22
Re: Error autofix vehicle - by RedJohn - 29.09.2012, 08:23

Forum Jump:


Users browsing this thread: 1 Guest(s)