How I Make Car Respawn - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: How I Make Car Respawn (
/showthread.php?tid=100564)
How I Make Car Respawn -
alex1a - 05.10.2009
How I make a System when the people exit the car, the car respawn?
My GameMode is this:
http://forum.sa-mp.com/index.php?topic=33818.0
Re: How I Make Car Respawn -
Correlli - 05.10.2009
pawn Код:
public OnPlayerExitVehicle(playerid, vehicleid)
{
SetVehicleToRespawn(vehicleid);
return 1;
}
Re: How I Make Car Respawn -
Abernethy - 05.10.2009
Use the
SetVehicleToRespawn function.
Re: How I Make Car Respawn -
alex1a - 05.10.2009
Do you u have any script tho spwan vehicle after 20 seconds of use....
Ex.: I exit the vehicle and after 20 seconds, the vehicle respawn
Re: How I Make Car Respawn -
.•[XpoweR]•. - 05.10.2009
Try this i think it's work
Put on top
Код:
forward("VehicleRespawn");
And that (not on top)
Код:
public OnPlayerExitVehicle(playerid, vehicleid)
{
SetTimer("VehicleRespwn",2000,0);
SetVehicleToRespawn(vehicleid);
return 1;
}
i hope it work lol....
Re: How I Make Car Respawn -
Abernethy - 05.10.2009
Quote:
Originally Posted by .•[XpoweR
•. ]
Try this i think it's work
Put on top
Код:
forward("VehicleRespawn");
Код:
public OnPlayerExitVehicle(playerid, vehicleid)
{
SetTimer("VehicleRespwn",2000,0);
SetVehicleToRespawn(vehicleid);
return 1;
i hope it work D:
}
|
Don't do it that way.
Use AddStaticVehicleEx or CreateVehicle. Search them on the wiki.
Re: How I Make Car Respawn -
[XST]O_x - 05.10.2009
Quote:
Originally Posted by .•[XpoweR
•. ]
Try this i think it's work
Put on top
Код:
forward("VehicleRespawn");
And that (not on top)
Код:
public OnPlayerExitVehicle(playerid, vehicleid)
{
SetTimer("VehicleRespwn",2000,0);
SetVehicleToRespawn(vehicleid);
return 1;
i hope it work D:
}
|
Little mistake,he asked for 20 seconds.Just change 2000 to 20000
Re: How I Make Car Respawn -
.•[XpoweR]•. - 05.10.2009
yup
Re: How I Make Car Respawn -
alex1a - 05.10.2009
Код:
forward("VehicleRespawn");
public OnPlayerExitVehicle(playerid, vehicleid)
{
SetTimer("VehicleRespwn",2000,0);
SetVehicleToRespawn(vehicleid);
return 1;
}
![Huh?](images/smilies/confused.gif)
I dont no where i put
Код:
forward("VehicleRespawn");
Re: How I Make Car Respawn -
.•[XpoweR]•. - 05.10.2009
put it on top after