[SOLVED] Need help with respawning a vehicle
#1

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:
pawn Код:
forward CarRespawnTimer(vehicleid);
public CarRespawnTimer(vehicleid)
{
   SetVehicleToRespawn(vehicleid);
}
then: Under OnPlayerExitVehicle(playerid, vehicleid)


pawn Код:
OnPlayerExitVehicle(playerid, vehicleid)
{
   SetTimer("CarRespawnTimer", 10000, false);
}
I Tried to do this, but it didn't work unfortunately, so please help me figure this out.


Solved:
Quote:
Originally Posted by Finn
pawn Код:
SetTimerEx("CarRespawnTimer", 10000, false, "d", vehicleid);
This worked perfectly, thank you very much Finn
Reply


Messages In This Thread
[SOLVED] Need help with respawning a vehicle - by Hiitch - 26.02.2010, 10:33
Re: Need help with respawning a vehicle - by Finn - 26.02.2010, 10:58
Re: Need help with respawning a vehicle - by [HiC]TheKiller - 26.02.2010, 11:01
Re: Need help with respawning a vehicle - by Finn - 26.02.2010, 11:06
Re: Need help with respawning a vehicle - by Mike Garber - 26.02.2010, 11:35
Re: Need help with respawning a vehicle - by gotenks918 - 26.02.2010, 11:56
Re: Need help with respawning a vehicle - by Hiitch - 26.02.2010, 14:05

Forum Jump:


Users browsing this thread: 1 Guest(s)