wait then respawn
#5

Here is a little script that let you respawn all vehicles:

Foreach version
pawn Код:
for( new V = 0; V < MAX_VEHICLES; V ++ )
{
    foreach(new i : Player)
    {
        if( IsPlayerInVehicle( i, V ) ) SetVehicleToRespawn( V );
    }
}
Loop version
pawn Код:
for( new V = 0; V < MAX_VEHICLES; V ++ )
{
    for( new i = 0; i < MAX_PLAYERS; i ++ )
    {
        if( IsPlayerInVehicle( i, V ) ) SetVehicleToRespawn( V );
    }
}
Reply


Messages In This Thread
wait then respawn - by phil_lendon - 10.09.2012, 15:19
Re: wait then respawn - by Roach_ - 10.09.2012, 15:21
AW: wait then respawn - by BiosMarcel - 10.09.2012, 15:21
Re: wait then respawn - by phil_lendon - 10.09.2012, 15:21
Re: wait then respawn - by Roach_ - 10.09.2012, 15:31
Re: wait then respawn - by mamorunl - 10.09.2012, 15:40

Forum Jump:


Users browsing this thread: 1 Guest(s)