Cars wont despawn
#1

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
Reply


Messages In This Thread
Cars wont despawn - by 1fret - 29.04.2017, 00:34
Re: Cars wont despawn - by Hansrutger - 29.04.2017, 00:43
Re: Cars wont despawn - by 1fret - 29.04.2017, 01:00
Re: Cars wont despawn - by Hansrutger - 29.04.2017, 01:02
Re: Cars wont despawn - by 1fret - 29.04.2017, 01:19
Re: Cars wont despawn - by 1fret - 30.04.2017, 07:33

Forum Jump:


Users browsing this thread: 1 Guest(s)