bo widze == czyli pewnie bedzie wtedy i tyko wtedy gdy bedzie 5 graczy
jak to z tym jest?
if(get_playersnum(0) == 5) { if (LastMan) { new cts[32], ts[32], ctsnum, tsnum new maxplayers = get_maxplayers() new CsTeams:team for (new i=1; i<=maxplayers; i++) { if (!is_user_connected(i) || !is_user_alive(i)) { continue } team = cs_get_user_team(i) if (team == CS_TEAM_T) { ts[tsnum++] = i } else if (team == CS_TEAM_CT) { cts[ctsnum++] = i } } if (ctsnum == 1 && tsnum == 1) { new ctname[32], tname[32] get_user_name(cts[0], ctname, 31) get_user_name(ts[0], tname, 31) set_hudmessage(0, 255, 255, -1.0, 0.35, 0, 6.0, 6.0, 0.5, 0.15, -1) ShowSyncHudMsg(0, g_center1_sync, "%s vs. %s", ctname, tname) } else if (!g_LastAnnounce) { new oposite = 0, _team = 0 if (ctsnum == 1 && tsnum > 1) { g_LastAnnounce = cts[0] oposite = tsnum _team = 0 } else if (tsnum == 1 && ctsnum > 1) { g_LastAnnounce = ts[0] oposite = ctsnum _team = 1 } if (g_LastAnnounce) { new name[32] get_user_name(g_LastAnnounce, name, 31) set_hudmessage(0, 255, 255, -1.0, 0.38, 0, 6.0, 6.0, 0.5, 0.15, -1) ShowSyncHudMsg(0, g_center1_sync, "%s vs. %d %s%s: %L", name, oposite, g_teamsNames[_team], (oposite == 1) ? "" : "S", LANG_PLAYER, g_LastMessages[random_num(0, 3)]) if (!is_user_connecting(g_LastAnnounce)) { client_cmd(g_LastAnnounce, "spk misc/oneandonly") } } } } }