==>Auto Fix Problem<==
#5

Sorry, I was on the mobile the time I replied and it would take ages to make it there.
pawn Код:
#define FILTERSCRIPT

new
    af_timer
;

public OnFilterScriptInit( )
{
    af_timer = SetTimer( "AutoRepair", 500, true );
    return 1;
}

public OnFilterScriptExit( )
{
    KillTimer( af_timer );
    return 1;
}

forward AutoRepair( );
public AutoRepair( )
{
    for( new playerid; playerid < MAX_PLAYERS; playerid ++ )
    {
        if( !IsPlayerConnected( playerid ) ) continue;
        if( GetPlayerState( playerid ) != PLAYER_STATE_DRIVE ) continue;
        RepairVehicle( GetPlayerVehicleID( playerid ) );
    }
    return 1;
}
Reply


Messages In This Thread
==>Auto Fix Problem<== - by ThePrograme - 29.12.2012, 17:04
Re: ==>Auto Fix Problem<== - by Konstantinos - 29.12.2012, 17:11
Re: ==>Auto Fix Problem<== - by ThePrograme - 29.12.2012, 17:15
Re: ==>Auto Fix Problem<== - by ThePrograme - 29.12.2012, 18:07
Re: ==>Auto Fix Problem<== - by Konstantinos - 29.12.2012, 18:12
Re: ==>Auto Fix Problem<== - by ThePrograme - 29.12.2012, 18:14
Re: ==>Auto Fix Problem<== - by ThePrograme - 29.12.2012, 18:30

Forum Jump:


Users browsing this thread: 1 Guest(s)