01.02.2014, 22:10
So, I made some dynamic vehicle renting system and I wanted it to destroy vehicle when you leave, but it doesn't work that way. Maybe anyone could help me with that please?
Here is code which I added to OnPlayerDisconnect:
Here is code which I added to OnPlayerDisconnect:
Код:
if(HireCar[playerid] != 999) { DestroyVehicle(HireCar[playerid]); HireCar[playerid] = 999; }