Counter-Strike 1.6
CS1.BG | DUST2 NOSHTA GARMI [RANKED PLAY] #1
45.144.155.113:27015
de_dust2
Играчи: 30/32
de_dust2
Counter-Strike 1.6
VIP
Cs-PlovdiV.com - Aim Attack 93.123.16.4:27022 aim_aztec Играчи: 0/16
Counter-Strike 1.6
VIP
93.123.16.4:27022 Cs-PlovdiV.com - Aim Attack aim_aztec 0/16

alteration csstats.amxx

В този раздел можете да подавате всякакви заявки за намиране, изработка или преработка на плъгини/модове.
Аватар
tiagocs90
Извън линия
Foreigner
Foreigner
Мнения: 13
Регистриран на: 16 Юли 2020, 00:44

alteration csstats.amxx

Мнение от tiagocs90 » 24 Юли 2020, 23:42

OciXCrom написа: 24 Юли 2020, 23:34 Again - you can't modify csstats. You can't change the rank position, number of kills or any type of stats. The module doesn't provide an API to work with.

The plugin above reads the rank from csstats. This is the same thing.
do, the plugin does not change flags then? is possible ?

When it is VALVE_4:4:XXX

Аватар
OciXCrom
Извън линия
Owner
Owner
Мнения: 7206
Регистриран на: 06 Окт 2016, 19:20
Местоположение: /resetscore
Се отблагодари: 117 пъти
Получена благодарност: 1296 пъти
Обратна връзка:

alteration csstats.amxx

Мнение от OciXCrom » 25 Юли 2020, 01:39

The code edited from atmax does exactly that. Did you even test?

Аватар
tiagocs90
Извън линия
Foreigner
Foreigner
Мнения: 13
Регистриран на: 16 Юли 2020, 00:44

alteration csstats.amxx

Мнение от tiagocs90 » 25 Юли 2020, 02:51

OciXCrom написа: 25 Юли 2020, 01:39 The code edited from atmax does exactly that. Did you even test?
//AMXXPC compile.exe
// by the AMX Mod X Dev Team


//// ignore.sma
//
// C:\Users\Tiago\CS\hlds\cstrike\addons\amxmodx\scripting\ignore.sma(59) : error 033: array must be indexed (variable "g_eFlags")
//
// 1 Error.
// Could not locate output file C:\Users\Tiago\CS\hlds\cstrike\addons\amxmodx\scripting\compiled\ignore.amx (compile failed).
//
// Compilation Time: 0,56 sec
// ----------------------------------------

Press enter to exit ...

Аватар
JackEyedJones
Извън линия
Потребител
Потребител
Мнения: 399
Регистриран на: 10 Сеп 2018, 17:26
Местоположение: Plovdiv, Bulgaria, Europe, Entire World
Се отблагодари: 4 пъти
Получена благодарност: 69 пъти
Обратна връзка:

alteration csstats.amxx

Мнение от JackEyedJones » 25 Юли 2020, 08:41

Код за потвърждение: Избери целия код

#include <amxmodx>
#include <cromchat>
#include <csstats>

const IGNORE_FLAG = ADMIN_LEVEL_A
const Float:DELAY_ON_CONNECT = 0.3
const Float:DELAY_ON_MESSAGE = 5.0

enum _:Flags
{
	Rank,
	Flag[32]
}

new const g_eFlags[][Flags] =
{
	{ 01, "bcdefijt" },
	{ 03, "bit" },
	{ 10, "bt" }
}

new g_iFlag[33]

public plugin_init()
{
	register_plugin("Top Awards", "1.0", "OciXCrom")
	register_dictionary("topawards.txt")
	CC_SetPrefix("&x01[&x04OLD's&x01]")
}

public client_putinserver(id)
{
	g_iFlag[id] = 0

	if(!is_user_bot(id))
	{
		set_task(DELAY_ON_CONNECT, "check_flags", id)
	}
}

public check_flags(id)
{
	new szAuthID[32]
	get_user_authid(id, szAuthID, charsmax(szAuthID))
	
	if(!is_user_connected(id) || get_user_flags(id) & IGNORE_FLAG)
		return

	if(containi(szAuthID, "VALVE_4:4") != -1)
		return 

	new iStats[8], iHits[8]
	get_user_stats(id, iStats, iHits)

	new iRank = iStats[7]

	for(new i; i < sizeof(g_eFlags); i++)
	{
		if(iRank <= g_eFlags[i][Rank])
		{
			g_iFlag[id] = i
			set_user_flags(id, read_flags(g_eFlags[i][Flag]))
			set_task(DELAY_ON_MESSAGE, "send_message", id)
			break
		}
	}
}

public send_message(id)
{
	if(!is_user_connected(id))
		return

	CC_SendMessage(id, "%L", id, "TOPAWARD_GET", g_eFlags[g_iFlag[id]][Flag], g_eFlags[g_iFlag[id]][Rank])
}

Публикувай отговор
  • Подобни теми
    Отговори
    Преглеждания
     Последно мнение

Обратно към “Заявки за плъгини”

Кой е на линия

Потребители разглеждащи този форум: Bing [Bot] и 3 госта