Destorying a car.
#1

I'm looking to have a car in my script, i have done the
Код:
new Sultan;
and in my OnGameModeInit I've done
Код:
Sultan = AddStaticVehicle(560,286.7310,-1155.9542,80.6157,224.1309,0,0); // SULTAN
Now i'm looking to make a command that destorys that car, so it respawns, something like this
Код:
if(strcmp(cmdtext, "/destorysultan", true) == 0)
   {
     
     Sultan = DestroyVehicle;
     return 1;
   }
any clues?
Reply
#2

holycrap bump^
Reply
#3

Dont bump after 16 mins..
It should be like this:
pawn Код:
if(strcmp(cmdtext, "/destorysultan", true) == 0)
   {
     DestroyVehicle(Sultan);
     return 1;
   }
Or you if you just want the car to respawn you can do like this:
pawn Код:
if(strcmp(cmdtext, "/respawnsultan", true) == 0)
   {
     SetVehicleToRespawn(Sultan);
     return 1;
   }
Reply
#4

Cheers, and it wasn't 16 minutes, well it was but it was on the 2nd page allready lol.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)