Clear all Vehicles with chosen ID
#2

pawn Код:
if(strcmp(cmdtext,"/clearveh",true) == 0)
{
  for(new i; i < MAX_VEHICLES; i++)
  {
    if(GetVehicleModel(i) == 591)
    {
      DestroyVehicle(i);
    }
  }
  return 1;
}
Now this will have a long and un-optimised execution time but generally this is just an example. DestroyVehicle uses vehicleid's and not modelid's
Reply


Messages In This Thread
Clear all Vehicles with chosen ID - by Black_Sun - 28.08.2009, 21:07
Re: Clear all Vehicles with chosen ID - by JaTochNietDan - 28.08.2009, 21:13
Re: Clear all Vehicles with chosen ID - by Black_Sun - 28.08.2009, 21:17
Re: Clear all Vehicles with chosen ID - by ilikepie2221 - 28.08.2009, 21:22

Forum Jump:


Users browsing this thread: 1 Guest(s)