[BUG] Bike
#1

There is a bug with the bikes, if they are for a faction/team and a player enters it, he can drive with it, here an example video, it's at the beginning driving a NRG

[ame]http://www.youtube.com/watch?v=sGpZUdMZyH8[/ame]
Reply
#2

It is a script problem. Report it on the server's website.

Or if you're the scripter, use something other than RemovePlayerFromVehicle, because it simulates pressing F key (try getting full speed on NRG and press F, see how it drops speed first?)

The thing that you're able to drive on bikes after said function been used is because the speed is too high for default getting off animation, and too low for jumping off animation, so when either condition is satisfied, you're forced off the bike.
Reply
#3

Quote:
Originally Posted by CaHbKo
Посмотреть сообщение
It is a script problem. Report it on the server's website.
No, it's a samp bug.

Because i also used to do this on a lot of servers

It's funny because if it's a car this bug doesn't happen, it has something to do with bikes
Reply
#4

Quote:
Originally Posted by CaHbKo
Посмотреть сообщение
The thing that you're able to drive on bikes after said function been used is because the speed is too high for default getting off animation, and too low for jumping off animation, so when either condition is satisfied, you're forced off the bike.
asdf
Reply
#5

way to fix.

pawn Код:
stock RemovePlayerFromVehicleEx(playerid)
{
    TogglePlayerControllable(playerid, 0);
    RemovePlayerFromVehicle(playerid);
    SetTimerEx("VehUnfreeze", 1000, 0, "i", playerid);
}

forward VehUnfreeze(playerid);
public VehUnfreeze(playerid)
{
    TogglePlayerControllable(playerid, 1);
}
Reply
#6

It's not that which causes the problem, it's RemovePlayerFromVehicle - it doesn't work if you're going too fast/slow, as described by CaHbKo.

You should try and use SetPlayerPos instead.
Reply
#7

Quote:
Originally Posted by StreetGT
Посмотреть сообщение
way to fix.

pawn Код:
stock RemovePlayerFromVehicleEx(playerid)
{
    TogglePlayerControllable(playerid, 0);
    RemovePlayerFromVehicle(playerid);
    SetTimerEx("VehUnfreeze", 1000, 0, "i", playerid);
}

forward VehUnfreeze(playerid);
public VehUnfreeze(playerid)
{
    TogglePlayerControllable(playerid, 1);
}
this work also for fix the bug.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)