PD car bug
#1

1.I have a problem, when someone enter in a Police car my server crash (don't send error) and I must restart it.
2.If I am civil or something I can enter in all vehicles (LCN, PD, Yakuza, etc.) and I need something who don't let me enter in all cars when I am civil.
Please help me! Thanks.
Reply
#2

First of all you post it in wrong section... Second can you post your OnPlayerEnterVehicle callback so we can see what is the problem...

And for second question you need to tell us which GM you are using... Because you need to define when is player civilian...


EDIT: I gues you use GF mode...

Do something like this under CarCheck

pawn Код:
for(new c = 74; c < 254; c++) //just ad the IDs of car which civilian will not be able to acces
    {
        for(new i = 0; i < MAX_PLAYERS; i++)
        {
            if(IsPlayerConnected(i))
            {
                if (PlayerInfo[i][gTeam] == 3)
                {
                    SetVehicleParamsForPlayer(c, i, 0, 1);
                }
                else
                {
                    SetVehicleParamsForPlayer(c, i, 0, 0);
                }
            }
        }
    }
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)