25.11.2014, 23:19
This is a know bug. Its caused because OnPlayerStateChange is not called - the player vehicle id is not synced for other players.
You can fix it by re-streaming the player.
You can fix it by re-streaming the player.
pawn Код:
stock fixed_PutPlayerInVehicle(playerid, vehicleid, seat) {
if (IsPlayerInAnyVehicle(playerid)) {
SetTimerEx("returnVW", 1500, false, "i", GetPlayerVirtualWorld(playerid));
SetPlayerVirtualWorld(playerid, GetPlayerVirtualWorld(playerid)+1); // Unload player
}
return PutPlayerInVehicle(playerid, vehicleid, seat);
}
forward returnVW(playerid, vwid);
public returnVW(playerid, vwid) {
SetPlayerVirtualWorld(playerid, vwid);
}