The blocking feature, would it be possible by a code edit to make it only blocking a defined team instead of both/all? I tried to understand how the bocking is done but couldnt find much about it inside the code. I expected to find here the handling what to do when the player enter a blocked area.
PHP Code:
public ZoneTouch(player, zone) {
new zm = pev(zone, ZONEID)
new userteam = get_user_team(player)
// Admin mit Immunity brauchen nicht
if (admin_immunity && (get_user_flags(player) & ADMIN_IMMUNITY)) return
// Kill Bill
if ( (ZONEMODE:zm == ZM_KILL) || ((ZONEMODE:zm == ZM_KILL_T1) && (userteam == 1)) || ((ZONEMODE:zm == ZM_KILL_T2) && (userteam == 2)) )
set_task(0.1, "ZoneModeKill", player)
// Camping
if ( (ZONEMODE:zm == ZM_CAMPING) || ((ZONEMODE:zm == ZM_CAMPING_T1) && (userteam == 1)) || ((ZONEMODE:zm == ZM_CAMPING_T2) && (userteam == 2)) ) {
if (!camping[player]) {
client_print(player, print_center, "%L", player, "WALKGUARD_CAMPING_INIT")
// Gratulation ... Du wirst beobachtet
camperzone[player] = zone
campertime[player] = get_gametime()
camping[player] = get_gametime()
set_task(0.5, "ZoneModeCamper", TASK_BASIS_CAMPER + player, _, _, "b")
} else {
// immer fleissig mitzählen
camping[player] = get_gametime()
}
}
}