02.11.2012, 18:44
I want that when players type /v a car is created. I used CreateVehicle for that. But the problem is I don't want that vehicle to respawn in the same area after vehicle death. I can't figure out a way to do that!
|
Originally Posted by Brandlax
I don't want that vehicle to respawn in the same area after vehicle death. I can't figure out a way to do that!
|
|
Lool, you don't need CreateVehicle for that , you need a filterscript . But if you are using /v only for one vehicle , then it is right. |
|
ok well i had this issue
REALLY REALLY EASY! CreateVehicle(vehid,xpos,ypos,zpos,angle+90,-1,-1,-1); look at the last bit: -1 thats all you need to do! |
if(vehicleid > 190) DestroyVehicle(vehicleid);
public OnVehicleDeath(vehicleid)
{
SetTimer("removevehicledelay",10000, false);
return 1;
}
forward removevehicledelay(vehicleid);
removevehicledelay(vehicleid)
{
DestroyVehicle(vehicleid);
return 1;
}