Vehicle destroying
#1

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:


Код:
if(HireCar[playerid] != 999)
	{
	DestroyVehicle(HireCar[playerid]);
	HireCar[playerid] = 999;
        }
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)