OnFilterScriptExit - RemoveAllCars
#1

Ok basically. our server we have decided to have all cars on FS. But we cannot decide a way to make the cars remove when the filterscript goes.

First Option : Each Car Has A "new" Variable , Which Add's A Lot Of Lines Of Script And Is Very Annoying using DestroyCar

Second Option : Something With Virtual Worlds ..., VW1 Cars VW2 Carless..

how have you guys done it?
Reply
#2

pawn Код:
public OnFilterScriptExit() {
   for(new i = 0; i < MAX_VEHICLES; i ++ ) {
      DestroyVehicle(i);
   }
}
Reply
#3

Many Thanks Ill Try This Now ..
Reply
#4

First vehicle ID is 1, so start loop with 1
pawn Код:
public OnFilterScriptExit() {
   for(new i = 1; i < MAX_VEHICLES; i ++ ) {
      DestroyVehicle(i);
   }
}
Reply
#5

Love You Man <3
Reply
#6

Quote:
Originally Posted by $ЂЯĢ
First vehicle ID is 1, so start loop with 1
pawn Код:
public OnFilterScriptExit() {
  for(new i = 1; i < MAX_VEHICLES; i ++ ) {
     DestroyVehicle(i);
  }
}
Hey, by the that way.

you are makeing it for vehicle id 2 +++
but id 1 will stay

Thinking logical

Код:
if(GeTPlayerMoney(asdads) > 51)
explenation - i cant buy if i have $51


soo
Код:
for i = 1; 1 < ASDASASD)
the same - destroying car with id 2 and higher..

soooo...
id 1 will stay..

if im wrong then say it to me.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)