Zmd there was an error while compiling i tested for you because i was intersted in so here is the fixed code: I just corrected some expressions of "(" "{" and errors assumed to 0.
Here it is and its working fine: +karmaD for the effort:D
for (new i = 1; i<=g_maxplayers;i++) player_has_radar[i] = false;
set_task (2.0,"radar_scan",_,_,_,"b"); }
public plugin_precache() { precache_sound(sound_radar_beep) }
public plugin_cfg() { new cfgdir[32] get_localinfo("amxx_configsdir",cfgdir,sizeof cfgdir) server_cmd("exec %s/zp_radar_zombie.cfg", cfgdir) }
public event_round_start() { if (get_pcvar_num(cvar_zp_radar_beep) == 1) zp_radar_beep=true; else zp_radar_beep=false;
if (get_pcvar_num(cvar_zp_radar_show_dead) == 1) zp_radar_show_dead=true; else zp_radar_show_dead=false; }
public zp_round_started(gamemode, id) { if(gamemode == MODE_NEMESIS) { new iPlayers[32], iPlayerCount, i, player get_players(iPlayers, iPlayerCount, "a") for(i = 0; i < iPlayerCount; i++) { player = iPlayers[i] if(zp_get_user_nemesis(player) )
player_has_radar[player] = true } } }
public zp_extra_item_selected(player, itemid) { if (itemid == g_itemid_radar) player_has_radar[player] = true; }
public radar_scan() { new humans_count = 0; new humans_list[32]; new HumansCoords[3]; new id, i;
for (new id=1; id<=g_maxplayers; id++) { if (zp_radar_show_dead) { if (!(zp_get_user_zombie(id) || zp_get_user_nemesis(id))) { humans_count++; humans_list[humans_count]=id; } } else { if ((!(zp_get_user_zombie(id) || zp_get_user_nemesis(id)))&&(is_user_alive(id))) { humans_count++; humans_list[humans_count]=id; } } }
for (id=1; id<=g_maxplayers; id++) { if ((!is_user_alive(id))||(!player_has_radar[id])) continue;
for (i=1;i<=humans_count;i++) { get_user_origin(humans_list[i], HumansCoords)
public zp_user_humanized_post(id) { g_bPlayerHasRadar[id] = false }
public RadarScan() { new HumanCount = 0 new HumanList[32], HumansCoords[3] new RadarShowDead = get_pcvar_num(g_iRadarShowDead)
for (new id = 1; id <= g_iMaxPlayers; id++) { if(RadarShowDead) { if (!zp_get_user_zombie(id) && !zp_get_user_nemesis(id)) { HumanCount++ HumanList[HumanCount] = id } } else { if (is_user_alive(id) && !zp_get_user_zombie(id) && !zp_get_user_nemesis(id)) { HumanCount++; HumanList[HumanCount]=id; } } }
new RadarBeep = get_pcvar_num(g_iRadarBeep) new id, i for (id = 1; id <= g_iMaxPlayers; id++) { if (!is_user_alive(id) || !g_bPlayerHasRadar[id]) continue