"You cant access this" - Vehicle limitation error
#10

How does it not work? Also, your code is flawed as it will basically allow anyone who has a faction ID higher than -1 to drive in the vehicles you listed.

I'm all out of ideas. Try to change this line:
pawn Код:
if(newstate == PLAYER_STATE_DRIVER)
to

pawn Код:
if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER)
If my code doesn't work, something else is causing this issue.

Quote:
Originally Posted by Meller
Посмотреть сообщение
Test this
Код:
if(GetVehicleModel(vehicle) == 596
        {
            SendClientMessage(playerid, COLOR_RED, "You don't have the keys for this vehicle.");
            RemovePlayerFromVehicle(playerid);
        }
Do you even know what your code does?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)