Skocz do zawartości
Darknes

kento rankme

Rekomendowane odpowiedzi

Hello

Korzystam z pluginu na rankingu kento rankme na serwerze i mam z nim dwa drobne problemy, mianowicie gdy dochodzi do zmiany teamów po 15 rundach gdy wygrywa mecz tt nie odstaje punktów oraz ilośc wygranych meczy się nie zmienia, czy ktoś posiada jakieś rozwiązanie

Udostępnij tę odpowiedź


Odnośnik do odpowiedzi
Udostępnij na innych stronach

Zaktualizuj Event_WinPanelMatch:

public Action:Event_WinPanelMatch(Handle:event, const String:name[], bool:dontBroadcast) {
	if(CS_GetTeamScore(CT) > CS_GetTeamScore(TR))
	{
		for(new i=1;i<=MaxClients;i++)
		{
			if(IsClientInGame(i))
			{
				if(!hidechat[i])
				{
					CPrintToChat(i, "%T", "CT_Win", i, g_PointsMatchWin);
					CPrintToChat(i, "%T", "TR_Lose", i, g_PointsMatchLose);
				}

				if(GetClientTeam(i) == TR)
				{
					g_aStats[i][MATCH_LOSE]++;
					g_aStats[i][SCORE] -= g_PointsMatchLose;
				}
				else if (GetClientTeam(i) == CT)
				{
					g_aStats[i][MATCH_WIN]++;
					g_aStats[i][SCORE] += g_PointsMatchWin;
				}
			}
		}
	}
	else if(CS_GetTeamScore(CT) == CS_GetTeamScore(TR))
	{
		for(new i=1;i<=MaxClients;i++)
		{
			if (IsClientInGame(i) && (GetClientTeam(i) == TR || GetClientTeam(i) == CT))
			{
				g_aStats[i][MATCH_DRAW]++;
				g_aStats[i][SCORE] += g_PointsMatchDraw;

				if(!hidechat[i])	CPrintToChat(i, "%T", "Draw", i, g_PointsMatchDraw);
			}
		}
	}
	else if(CS_GetTeamScore(CT) < CS_GetTeamScore(TR))
	{
		for(new i=1;i<=MaxClients;i++)
		{
			if(IsClientInGame(i))
			{
				if(!hidechat[i])
				{
					CPrintToChat(i, "%s %T", MSG, "TR_Win", i, g_PointsMatchWin);
					CPrintToChat(i, "%s %T", MSG, "CT_Lose", i, g_PointsMatchLose);
				}

				if(GetClientTeam(i) == TR)
				{
          g_aStats[i][MATCH_WIN]++;
					g_aStats[i][SCORE] += g_PointsMatchWin;
				}
				else if (GetClientTeam(i) == CT)
				{
          g_aStats[i][MATCH_LOSE]++;
					g_aStats[i][SCORE] -= g_PointsMatchLose;
				}
			}
		}
	}
}

 

Udostępnij tę odpowiedź


Odnośnik do odpowiedzi
Udostępnij na innych stronach

Jeśli chcesz dodać odpowiedź, zaloguj się lub zarejestruj nowe konto

Jedynie zarejestrowani użytkownicy mogą komentować zawartość tej strony.

Zarejestruj nowe konto

Załóż nowe konto. To bardzo proste!

Zarejestruj się

Zaloguj się

Posiadasz już konto? Zaloguj się poniżej.

Zaloguj się

  • Przeglądający   0 użytkowników

    Brak zarejestrowanych użytkowników przeglądających tę stronę.

  • Podobna zawartość

    • Przez query96
      Witam, mam problem z pluginem rankme aż restartuje mi serwer i ludzie uciekają proszę o pomoc. Wklejam error loga dzisiaj
       
      Error logów serwera dzisiaj
    • Przez fruzak
      Witam mam pytanie , jeśli mam na serwerze plugin rankme to jak mogę zrestartować punkty graczom?
    • Przez SeParator
      Witam, ostatnio zmieniłem ranking rankme na rankme by kento i po pewnym czasie chrupnął mi serwer z błędem
       
      L 11/16/2017 - 16:54:27: [SM] Exception reported: Error fetching data from field 69
      L 11/16/2017 - 16:54:27: [SM] Blaming: kento_rankme.smx
      L 11/16/2017 - 16:54:27: [SM] Call stack trace:
      L 11/16/2017 - 16:54:27: [SM]   [0] SQL_FetchInt
      L 11/16/2017 - 16:54:27: [SM]   [1] Line 2243, D:\CSGODS\CSGO\csgo\addons\sourcemod\scripting\kento_rankme.sp::SQL_LoadPlayerCallback
       
      Ranking działa normalnie natomiast levelranks, które jest wgrane na serwer chrupnęło i rangi się zresetowały. Jakieś porady?
    • Przez Angelofdeath
      Witam
       
      Tak jak w temacie, posiadam na swoim serwerze plugin rankme by Kento, źródło ---> https://forums.alliedmods.net/showthread.php?p=2467665
      Używam zapisy SQL + Web Staty
      A mój problem wygląda następująco:
      Jeśli gracz zdobędzie punkty jest o tym informacja na say'u i suma punktów gracza się zwieksza
      Lecz ranking który wyświetla się na serwerze nie reaguje na zmiany punktów dopiero przy zmianie/przeładowaniu mapki
       
       
      plik .cfg
      // This file was auto-generated by SourceMod (v1.8.0.5997) // ConVars for plugin "kento_rankme.smx" // Announce when a player connect with position and points? // - // Default: "1" // Minimum: "0.000000" // Maximum: "1.000000" rankme_announcer_player_connect "1" // Announce when a player connect at chat? // - // Default: "1" // Minimum: "0.000000" // Maximum: "1.000000" rankme_announcer_player_connect_chat "1" // Announce when a player connect at hintbox? // - // Default: "0" // Minimum: "0.000000" // Maximum: "1.000000" rankme_announcer_player_connect_hint "0" // Announce when a player disconnect with position and points? // - // Default: "1" // Minimum: "0.000000" // Maximum: "1.000000" rankme_announcer_player_disconnect "1" // Announce when a top player connect? // - // Default: "1" // Minimum: "0.000000" // Maximum: "1.000000" rankme_announcer_top_player_connect "1" // Announce when a top player connect at chat? // - // Default: "1" // Minimum: "0.000000" // Maximum: "1.000000" rankme_announcer_top_player_connect_chat "1" // Announce when a top player connect at hintbox? // - // Default: "0" // Minimum: "0.000000" // Maximum: "1.000000" rankme_announcer_top_player_connect_hint "0" // Max position to announce that a top player connect? // - // Default: "10" // Minimum: "0.000000" rankme_announcer_top_pos_player_connect "10" // Auto-Purge inactive players? X = Days 0 = Off // - // Default: "0" // Minimum: "0.000000" rankme_autopurge "0" // Show points changes on chat? 1 = true 0 = false // - // Default: "1" // Minimum: "0.000000" // Maximum: "1.000000" rankme_changes_chat "1" // Enable (non-command) chat triggers. (e.g: rank, statsme, top) Recommended to be set to 0 when running with EventScripts for avoiding double responses. 1 = true 0 = false // - // Default: "1" // Minimum: "0.000000" // Maximum: "1.000000" rankme_chat_triggers "1" // Days inactive to not be shown on rank? X = days 0 = off // - // Default: "0" // Minimum: "0.000000" rankme_days_to_not_show_on_rank "0" // Dump the Database to SQL file? (required to be 1 if using the web interface and SQLite, case MySQL, it won't be dumped) 1 = true 0 = false // - // Default: "1" // Minimum: "0.000000" // Maximum: "1.000000" rankme_dump_db "0" // Is RankMe enabled? 1 = true 0 = false // - // Default: "1" // Minimum: "0.000000" // Maximum: "1.000000" rankme_enabled "1" // Free-For-All (FFA) mode? 1 = true 0 = false // - // Default: "0" // Minimum: "0.000000" // Maximum: "1.000000" rankme_ffa "1" // Gather Statistics (a.k.a count points)? (turning this off won't disallow to see the stats already gathered) 1 = true 0 = false // - // Default: "1" // Minimum: "0.000000" // Maximum: "1.000000" rankme_gather_stats "1" // Gather Statistics In Warmup? // - // Default: "1" // Minimum: "0.000000" // Maximum: "1.000000" rankme_gather_stats_warmup "1" // Minimal kills for entering the rank // - // Default: "0" // Minimum: "0.000000" rankme_minimal_kills "0" // Minimum players to start giving points // - // Default: "2" // Minimum: "0.000000" rankme_minimumplayers "2" // Using MySQL? 1 = true 0 = false (SQLite) // - // Default: "0" // Minimum: "0.000000" // Maximum: "1.000000" rankme_mysql "1" // Multiplier of losing points. (WARNING: MAKE SURE TO INPUT IT AS FLOAT) 1.0 equals lose same amount as won by the killer, 0.0 equals no lose // - // Default: "1.0" // Minimum: "0.000000" rankme_percent_points_lose "0.0" // How many points a player gets for assist kill? // - // Default: "1" // Minimum: "0.000000" rankme_points_assiist_kill "1" // How many points the CT who defused got additional? // - // Default: "2" // Minimum: "0.000000" rankme_points_bomb_defused_player "2" // How many points CTs got for defusing the C4? // - // Default: "2" // Minimum: "0.000000" rankme_points_bomb_defused_team "2" // How many points a player loess for dropping the bomb? // - // Default: "0" // Minimum: "0.000000" rankme_points_bomb_dropped "0" // How many points the TR who planted got additional? // - // Default: "2" // Minimum: "0.000000" rankme_points_bomb_exploded_player "2" // How many points TRs got for exploding the C4? // - // Default: "2" // Minimum: "0.000000" rankme_points_bomb_exploded_team "2" // How many points a player gets for picking up the bomb? // - // Default: "0" // Minimum: "0.000000" rankme_points_bomb_pickup "0" // How many points the TR who planted got additional? // - // Default: "2" // Minimum: "0.000000" rankme_points_bomb_planted_player "2" // How many points TRs got for planting the C4? // - // Default: "2" // Minimum: "0.000000" rankme_points_bomb_planted_team "2" // How many points an alive CT got for winning the round? // - // Default: "0" // Minimum: "0.000000" rankme_points_ct_round_win "0" // How many points the CT who rescued got additional? // - // Default: "2" // Minimum: "0.000000" rankme_points_hostage_rescued_player "2" // How many points CTs got for rescuing the hostage? // - // Default: "2" // Minimum: "0.000000" rankme_points_hostage_rescued_team "2" // How many additional points a player got for a HeadShot? // - // Default: "1" // Minimum: "0.000000" rankme_points_hs "1" // How many points a CT got for killing additional by the diffrence of points? // - // Default: "1" // Minimum: "0.000000" rankme_points_kill_bonus_ct "1" // How many points of diffrence is needed for a CT to got the bonus? // - // Default: "100" // Minimum: "0.000000" rankme_points_kill_bonus_dif_ct "100" // How many points of diffrence is needed for a TR to got the bonus? // - // Default: "100" // Minimum: "0.000000" rankme_points_kill_bonus_dif_tr "100" // How many points a TR got for killing additional by the diffrence of points? // - // Default: "1" // Minimum: "0.000000" rankme_points_kill_bonus_tr "1" // How many points a CT got for killing? // - // Default: "2" // Minimum: "0.000000" rankme_points_kill_ct "2" // How many points a TR got for killing? // - // Default: "2" // Minimum: "0.000000" rankme_points_kill_tr "2" // Multiplier of points by knife // - // Default: "2.0" // Minimum: "0.000000" rankme_points_knife_multiplier "2.0" // If the points is f1oat, round it to next the highest or lowest? 1 = highest 0 = lowest // - // Default: "1" // Minimum: "0.000000" // Maximum: "1.000000" rankme_points_lose_round_ceil "1" // How many points a player lose for Suiciding? // - // Default: "0" // Minimum: "0.000000" rankme_points_lose_suicide "0" // How many points a player lose for Team Killing? // - // Default: "0" // Minimum: "0.000000" rankme_points_lose_tk "0" // Minimum points // - // Default: "0" // Minimum: "0.000000" rankme_points_min "0" // Is minimum points enabled? 1 = true 0 = false // - // Default: "1" // Minimum: "0.000000" // Maximum: "1.000000" rankme_points_min_enabled "1" // How many points a CT got for being the MVP? // - // Default: "1" // Minimum: "0.000000" rankme_points_mvp_ct "1" // How many points a TR got for being the MVP? // - // Default: "1" // Minimum: "0.000000" rankme_points_mvp_tr "1" // Starting points // - // Default: "1000" // Minimum: "0.000000" rankme_points_start "1000" // Multiplier of points by taser // - // Default: "2.0" // Minimum: "0.000000" rankme_points_taser_multiplier "2.0" // How many points an alive TR got for winning the round? // - // Default: "0" // Minimum: "0.000000" rankme_points_tr_round_win "0" // How many points the VIP got for escaping? // - // Default: "2" // Minimum: "0.000000" rankme_points_vip_escaped_player "2" // How many points CTs got helping the VIP to escaping? // - // Default: "2" // Minimum: "0.000000" rankme_points_vip_escaped_team "2" // How many points the TR who killed the VIP got additional? // - // Default: "2" // Minimum: "0.000000" rankme_points_vip_killed_player "2" // How many points TRs got for killing the VIP? // - // Default: "2" // Minimum: "0.000000" rankme_points_vip_killed_team "2" // Rank players by? 0 = STEAM:ID 1 = Name 2 = IP // - // Default: "0" // Minimum: "0.000000" // Maximum: "2.000000" rankme_rank_by "0" // Get player rank via cache, auto build cache on every OnMapStart. // - // Default: "0" // Minimum: "0.000000" // Maximum: "1.000000" rankme_rank_cache "0" // Rank by what? 1 = by points 2 = by KDR // - // Default: "1" // Minimum: "1.000000" // Maximum: "2.000000" rankme_rank_mode "1" // Rank bots? 1 = true 0 = false // - // Default: "0" // Minimum: "0.000000" // Maximum: "1.000000" rankme_rankbots "0" // Allow player to reset his own rank? 1 = true 0 = false // - // Default: "0" // Minimum: "0.000000" // Maximum: "1.000000" rankme_resetownrank "0" // Show bots on rank/top/etc? 1 = true 0 = false // - // Default: "0" // Minimum: "0.000000" // Maximum: "1.000000" rankme_show_bots_on_rank "0" // When rank command is used, show for all the rank of the player? 1 = true 0 = false // - // Default: "0" // Minimum: "0.000000" // Maximum: "1.000000" rankme_show_rank_all "0" // The name of the table that will be used. (Max: 100) // - // Default: "rankme" rankme_sql_table "rankme" // Show AS_ maps statiscs (VIP mod) on statsme and session? // - // Default: "0" // Minimum: "0.000000" // Maximum: "1.000000" rankme_vip_enabled "0"  
       
      Czy ktoś wie co może być tego przyczyną, ewentualnie jak wyłączyć ranking który pojawia się co jakiś czas na admin say'u a jest aktualnie bezużyteczny ponieważ się nie aktualizuje
      Dodam jeszcze że typ serwera to DeathMatch gdzie nie ma zmiany rundy więc może to jest problem
×