31.03.2014, 04:50
pawn Код:
CMD:borrarautos(playerid,params[])
{
new bool:playerinvehicle;
for(new i; i< MAX_VEHICLES; i++)
{
for(new u; u< MAX_PLAYERS; u++)
{
if(IsPlayerInVehicle(u, i))
{
playerinvehicle = true;
break;
}
}
if(playerinvehicle)
{
playerinvehicle = false;
continue;
}
DestroyVehicle(i);
}
return 1;
}