Need help (Freeroam based)
#1

Hi Guys,

How do I make it so that if someone uses warp, in a freeroam, it auto repairs car up-on damage or just any type of damage, stops the vehicle from blowing up?

Thanks!
Reply
#2

pawn Код:
public OnGameModeInit( )
{
    SetTimer( "AutoRepair", 500, true );
    // Rest of your code
    return 1;
}

forward AutoRepair( );
public AutoRepair( )
{
    for( new x = 0; x < MAX_PLAYERS; x++ )
    {
        if( !IsPlayerInAnyVehicle( x ) ) continue;
        RepairVehicle( GetPlayerVehicleID( x ) );
    }
    return 1;
}
Reply
#3

Cheers pal! +REP!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)