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
#2

Show us what you have assigned pInfo[playerid][pVeh], pInfo[playerid][pBVeh] and pInfo[playerid][pVVeh] with.
Reply
#3

Quote:
Originally Posted by Hansrutger
Посмотреть сообщение
Show us what you have assigned pInfo[playerid][pVeh], pInfo[playerid][pBVeh] and pInfo[playerid][pVVeh] with.
meaning you want to see what commands i use?
Reply
#4

Whatever will provide where you set:

pInfo[playerid][pVeh] = something
pInfo[playerid][pBVeh] = something
pInfo[playerid][pVVeh] = something
Reply
#5

pInfo[playerid][pBVeh] = 0;
Reply
#6

bump
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)