[Question] Crating And Destroying Cars And Objects.
#1

I made a command, and when I enter this command player should be teleported to a certain place.
When he arives there should be cars what admin created with this command...

And when admin types eg. /quitrace i want to destroy all the cars and objects

i tryed with RaceCars = AddStat........

and then DestroyVehicle....but doesn't work....

Do you have any suggestions how to do that?
Reply
#2

To create vehicles ingame, you have to use CreateVehicle. To remove them later on, you have to store their ids, as you already tried.
pawn Код:
racecar1 = CreateVehicle...
racecar2 = CreateVehicle...

//or with an array
new racecar[max_cars];
racecar[0] = ...
racecar[1] = ...
Then in /quitrace use DestroyVehicle with the stored ids.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)