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


Messages In This Thread
Car problem onplayerdisconnect - by UnknownGamer - 05.11.2012, 21:51

Forum Jump:


Users browsing this thread: 1 Guest(s)