23.11.2009, 22:22
When PutPlayerInVehicle is used on a player that's in a vehicle, they stay in that vehicle for other players until that vehicle is destroyed.
Very annoying bug.
Very annoying bug.
// Has to go before all the PutPlayerInVehicle's, or you can manually rename all them to whatever.
public SafePutPlayerInVehicle(playerid, vehicleid, seatid)
{
foreach(Player, i)
{
if(GetPlayerVehicleID(i) == vehicleid && GetPlayerVehicleSeat(i) == seatid)
{
return 0;
}
}
PutPlayerInVehicle(playerid, vehicleid, seatid);
return 1;
}
#define PutPlayerInVehicle SafePutPlayerInVehicle
xInfo[playerid][vehicle]=vehicleid; SetPlayerSpecialAction(playerid,0); PutPlayerInVehicle(playerid,vehicleid,seat); return 1; }