restricted vehicles are bugged?
#1

Well, we made few updates after that restricted vehicles gone bugged, like anyone can drive em, for ex- pd cars can be drive by non pd members aswell
Reply
#2

Код:
OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    if (PlayerFaction[playerid] == FACTION_ID && vehicleid == VEHICLE_ID)
    {
        ClearAnimations(playerid);
    }
    return 1;
}
This will stop the player from even trying to enter.

But this stops the player from staying in the car once they enter:
Код:
OnPlayerStateChange(playerid, newstate, oldstate)
{
    if (newstate == PLAYER_STATE_DRIVER || newstate == PLAYER_STATE_PASSENGER)
    {
        RemovePlayerFromVehicle(playerid);
    }
    return 1;
}
Reply
#3

Quote:
Originally Posted by Stinged
Посмотреть сообщение
Код:
OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    if (PlayerFaction[playerid] == FACTION_ID && vehicleid == VEHICLE_ID)
    {
        ClearAnimations(playerid);
    }
    return 1;
}
This will stop the player from even trying to enter.

But this stops the player from staying in the car once they enter:
Код:
OnPlayerStateChange(playerid, newstate, oldstate)
{
    if (newstate == PLAYER_STATE_DRIVER || newstate == PLAYER_STATE_PASSENGER)
    {
        RemovePlayerFromVehicle(playerid);
    }
    return 1;
}

thank you for your reply, but the codes you just sent me aren't working in the faction vehicles only, I mean, When I put it in the script then all the players became not able to drive any vehicle, even their own vehicle, the first codes you sent didn't work to me, Or I didn't know how to put it, But the second codes worked but as I said, they didn't work as I wanted to
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)