22.02.2011, 05:27
AddStaticVehicleEx(420,2075.04711914,1292.76806641 ,10.52187443,0.00000000,-1,-1,15);
How i can make it to respawn after 15 minutes
How i can make it to respawn after 15 minutes
Parameters: (modelid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:angle, color1, color2, respawn_delay) modelid The Model ID for the vehicle. Float:spawn_X The X-coordinate for the vehicle. Float:spawn_Y The Y-coordinate for the vehicle. Float:spawn_Z The Z-coordinate for the vehicle. Float:angle The facing - angle for the vehicle. color1 The primary color ID. color2 The secondary color ID. respawn_delay The delay until the car is respawned without a driver in seconds. Returns The vehicle ID of the vehicle created.
new Car;
public OnGameModeInit() {
car = AddStaticVehicleEx(420,2075.04711914,1292.76806641 ,10.52187443,0.00000000,-1,-1,15);
SetTimer("ReCar",15000 , true ) ; // true is if u want it to repeat it every 15 seconds to respawn if not put false
return 1;
}
forward ReCar () ;
public ReCar () {
DestroyVehicle(Car);
CreateVehicle(420,2075.04711914,1292.76806641 ,10.52187443,0.00000000,-1,-1,15);
return 1;
}