Posts: 1,534
Threads: 179
Joined: Apr 2009
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]
Posts: 399
Threads: 28
Joined: Nov 2007
Reputation:
0
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.
Posts: 1,534
Threads: 179
Joined: Apr 2009
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
Posts: 1,032
Threads: 2
Joined: Dec 2008
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);
}
Posts: 6,236
Threads: 310
Joined: Jan 2011
Reputation:
0
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.
Posts: 1,032
Threads: 2
Joined: Dec 2008
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.