26.02.2010, 10:33
SOLVED: Info below.
Hey everyone, I currently am scripting on a server, but I have a problem with this.
I am currently trying to do the following:
Respawn the vehicle when the player exits it.
But, I don't have any luck, even after trying to create a timer to work, but I think it only will respawn the vehicle ID 0, so let me explain what I did.
Created a timer:
then: Under OnPlayerExitVehicle(playerid, vehicleid)
I Tried to do this, but it didn't work unfortunately, so please help me figure this out.
Solved:
This worked perfectly, thank you very much Finn
Hey everyone, I currently am scripting on a server, but I have a problem with this.
I am currently trying to do the following:
Respawn the vehicle when the player exits it.
But, I don't have any luck, even after trying to create a timer to work, but I think it only will respawn the vehicle ID 0, so let me explain what I did.
Created a timer:
pawn Код:
forward CarRespawnTimer(vehicleid);
public CarRespawnTimer(vehicleid)
{
SetVehicleToRespawn(vehicleid);
}
pawn Код:
OnPlayerExitVehicle(playerid, vehicleid)
{
SetTimer("CarRespawnTimer", 10000, false);
}
Solved:
Quote:
Originally Posted by Finn
pawn Код:
|