29.04.2017, 00:34
i made this vehicle system , and i want it to despawn the car when the owner of the vehicle leaves the server.. This is my coding under onplayerdisconnect
PHP код:
if(pInfo[playerid][vModel])
{
DestroyVehicle(pInfo[playerid][pVeh]);
}
if(pInfo[playerid][vBModel])
{
DestroyVehicle(pInfo[playerid][pBVeh]);
}
if(pInfo[playerid][vVModel])
{
DestroyVehicle(pInfo[playerid][pVVeh]);
}
pInfo[playerid][pVeh] = 0;
pInfo[playerid][pBVeh] = 0;
pInfo[playerid][pVVeh] = 0;