10.09.2012, 15:31
Here is a little script that let you respawn all vehicles:
Foreach version
Loop version
Foreach version
pawn Код:
for( new V = 0; V < MAX_VEHICLES; V ++ )
{
foreach(new i : Player)
{
if( IsPlayerInVehicle( i, V ) ) SetVehicleToRespawn( V );
}
}
pawn Код:
for( new V = 0; V < MAX_VEHICLES; V ++ )
{
for( new i = 0; i < MAX_PLAYERS; i ++ )
{
if( IsPlayerInVehicle( i, V ) ) SetVehicleToRespawn( V );
}
}