vehicle destroy on respawn samp
#1

Is this possible to destroy vehicle [CreateVehicle() ] when they respawn.
Reply
#2

Yes. Just store the vehicle ID which is returned by CreateVehicle into a variable and destroy it OnVehicleSpawn. OnVehicleSpawn is actually called when a vehicle RE-spwns.
Reply
#3

pawn Код:
CreateVehicle(vehicleid, .......), Destroyable[vehicleid] = 1;


public OnVehicleSpawn(vehicleid)
{
   if(Destroyable[vehicleid] == 1)
   {
      DestroyVehicle(vehicled);
   }
   return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)