question about create vehicle - 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)
+--- Thread: question about create vehicle (
/showthread.php?tid=496335)
question about create vehicle -
karolis11234 - 21.02.2014
1. is there a diffrence between using createvehicle in the callback OnGameModeInit and in the callback OnPlayerConnect
2. can they be respawned multiple times with the function SetVehicleToRespawn ?
Re: question about create vehicle -
Ryan_Undering - 21.02.2014
Quote:
Originally Posted by karolis11234
1. is there a diffrence between using createvehicle in the callback OnGameModeInit and in the callback OnPlayerConnect
2. can they be respawned multiple times with the function SetVehicleToRespawn ?
|
OnGameModeInit will create a vehicle when the script is ran for the first time (or if it has been restarted).
OnPlayerConnect will create a vehicle everytime ANY PLAYER connects.
SetVehicleToRespawn can be used as many times as you like, just provide the vehicle ID to respawn.