pawn Код:
new aVeh;
public OnGameModeInit()
{
aVeh = CreateVehicle(/**/);
}
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER && GetPlayerVehicleID(playerid) == aVeh && !IsPlayerAdmin(playerid))
{
SendClientMessage(playerid, -1, "SERVER: You are not allowed to enter this vehicle. Good-bye.");
RemovePlayerFromVehicle(playerid); // Kicks him out of the car instead of the server ;)
}
return 1;
}