26.07.2012, 08:52
Tere Olari. Why won't you just kick the player out of the car when he enter it? Something like this:
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER)
{
new vehicleid = GetPlayerVehicleID(playerid);
if(gCars[vehicleid][CarTeam] == gPlayer[playerid][Team])
{
RemovePlayerFromVehicle(playerid);
}
}
return 1;
}