Little question
#1

AddStaticVehicleEx(420,2075.04711914,1292.76806641 ,10.52187443,0.00000000,-1,-1,15);
How i can make it to respawn after 15 minutes
Reply
#2

https://sampwiki.blast.hk/wiki/AddStaticVehicleEx

Already says

Код:
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.
and you already got 15 seconds
if you are trying to make it respawn without this or just respawn with out no one getting in it try this

pawn Код:
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;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)