SA-MP Forums Archive
When player disconnects - 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: When player disconnects (/showthread.php?tid=326803)



When player disconnects - Tanush123 - 18.03.2012

well what is the function to delete a trailer (trailer[playerid])


Re: When player disconnects - Mikkel_Pedersen - 18.03.2012

You destroy a trailer just the same way as you destroy a vehicle; using DestroyVehicle

So at OnPlayerDisconnect it would simply be: DestroyVehicle(trailer[playerid]);


Re: When player disconnects - Tanush123 - 20.03.2012

Quote:
Originally Posted by Mikkel_Pedersen
Посмотреть сообщение
You destroy a trailer just the same way as you destroy a vehicle; using DestroyVehicle

So at OnPlayerDisconnect it would simply be: DestroyVehicle(trailer[playerid]);
Well i did that for trucking, it deletes all trailer[playerid] if 1 person quits.