Car problem onplayerdisconnect
#1

pawn Код:
if(PlayerInfo[playerid][pPcarkey] != 9999)
    {
        SetVehicleToRespawn(PlayerInfo[playerid][pPcarkey]);
        SetVehicleVirtualWorld(PlayerInfo[playerid][pPcarkey], 95372);
        OnPropUpdate(4,PlayerInfo[playerid][pPcarkey]);
        OnPlayerUpdateEx(playerid);
    }
    if(PlayerInfo[playerid][pPcarkey2] != 9999)
    {
        SetVehicleToRespawn(PlayerInfo[playerid][pPcarkey2]);
        SetVehicleVirtualWorld(PlayerInfo[playerid][pPcarkey2], 95372);
        OnPropUpdate(4,PlayerInfo[playerid][pPcarkey2]);
        OnPlayerUpdateEx(playerid);
    }

Hey guys, I'm having a slight issue with this, is this the rite way to do it? Some cars despawn, but some dont? When they disconnect of the server.

thanks
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)