SA-MP Forums Archive
[BUG] Bike - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [BUG] Bike (/showthread.php?tid=331876)



[BUG] Bike - Dripac - 06.04.2012

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]


Re: [BUG] Bike - CaHbKo - 06.04.2012

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.


Re: [BUG] Bike - Dripac - 06.04.2012

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


Re: [BUG] Bike - CaHbKo - 06.04.2012

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


Re: [BUG] Bike - StreetGT - 06.04.2012

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);
}



Re: [BUG] Bike - MP2 - 06.04.2012

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.


Re: [BUG] Bike - StreetGT - 06.04.2012

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.