OciXCrom's Rank System [XP|Levels|Ranks]

Одобрените от нас плъгини. Моля, докладвайте ако забележите бъг с някой от плъгините в този раздел.
Аватар
impossible
Извън линия
Потребител
Потребител
Мнения: 488
Регистриран на: 15 Юни 2019, 12:41
Се отблагодари: 23 пъти
Получена благодарност: 47 пъти

OciXCrom's Rank System [XP|Levels|Ranks]

Мнение от impossible » 06 Апр 2020, 14:09


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

OciXCrom's Rank System [XP|Levels|Ranks]

Мнение от OciXCrom » 06 Апр 2020, 15:55

Компилиран плъгин няма да намериш в целия форум, не само в моите плъгини. Никога не трябва да слагаш компилирани плъгини директно от нета, тъй като може да съдържат задни вратички, да бъдат компилирани под друга АМХХ версия и прочие. Прочети горната тема и ще разбереш как.

Аватар
psycho
Извън линия
Потребител
Потребител
Мнения: 15
Регистриран на: 18 Авг 2018, 20:37
Се отблагодари: 2 пъти
Получена благодарност: 1 път

OciXCrom's Rank System [XP|Levels|Ranks]

Мнение от psycho » 08 Апр 2020, 18:27

При достигане на максималното ниво, играчът получава определения от настройките флаг, но след смяна на картата флагът изчезва, защо така?

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

OciXCrom's Rank System [XP|Levels|Ranks]

Мнение от OciXCrom » 08 Апр 2020, 21:02

psycho написа: 08 Апр 2020, 18:27 При достигане на максималното ниво, играчът получава определения от настройките флаг, но след смяна на картата флагът изчезва, защо така?
Защото някой плъгин му пречи. Виж с това дали става.

Аватар
Niiicu
Извън линия
Потребител
Потребител
Мнения: 88
Регистриран на: 24 Апр 2020, 10:01
Се отблагодари: 1 път
Получена благодарност: 1 път

OciXCrom's Rank System [XP|Levels|Ranks]

Мнение от Niiicu » 28 Апр 2020, 11:21

How can i add more messages on the chat for different event, for exemple:
When the bomb is planted- Player x recieved 20 XP for planting the bomb
When a bomb explode- Player x he recieved 30 XP because his bomb explode
When a team WIN- Team CT recieved 20 XP for winning the round
When someone make a kill with a he- Player x recieved 30 XP for humiliating player y with a HE
When someone make a kill with knife- Player x recieved 30 XP for humiliating player a with a knife

I know how to add more events like this in configuration file but i don't know how to add messages
I hope i've explained well
CS.AVENGERSCS.RO - Classic

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

OciXCrom's Rank System [XP|Levels|Ranks]

Мнение от OciXCrom » 28 Апр 2020, 14:37

Since the events can be combined in multiple ways and the plugin can be used in games different than Counter-Strike, I don't think adding those messages in the plugin is a good idea. Although I guess it can easily be made for some of the ones you mentioned.

For bomb plant/explode, check these lines in the code:

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

public bomb_planted(id)
{
	give_user_xp(id, get_xp_reward(id, XPREWARD_BOMB_PLANTED), CRXRANKS_XPS_REWARD)
}

public bomb_defused(id)
{
	give_user_xp(id, get_xp_reward(id, XPREWARD_BOMB_DEFUSED), CRXRANKS_XPS_REWARD)
}

public bomb_explode(id)
{
	give_user_xp(id, get_xp_reward(id, XPREWARD_BOMB_EXPLODED), CRXRANKS_XPS_REWARD)
}
To add a message for planting the bomb, modify the first function like this:

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

public bomb_planted(id)
{
	new szName[MAX_NAME_LENGTH]
	get_user_name(id, szName, charsmax(szName))
	new iReward = get_xp_reward(id, XPREWARD_BOMB_PLANTED)
	give_user_xp(id, iReward, CRXRANKS_XPS_REWARD)
	CC_SendMessage(0, "Player %s received %i XP for planting the bomb", szName, iReward)
}
The same goes for the other 2 similar functions. I will probably add these messages in the next update since they're not a big deal.

About team wins - this can't be done with one message because te XP reward can be different for players, e.g. if they are VIP.
About kills with weapons - not really possible, because the plugin combines the XP from the weapon kill with the normal kill, headshot and stuff like that to form the final XP reward if the setting is enabled.

Аватар
Niiicu
Извън линия
Потребител
Потребител
Мнения: 88
Регистриран на: 24 Апр 2020, 10:01
Се отблагодари: 1 път
Получена благодарност: 1 път

OciXCrom's Rank System [XP|Levels|Ranks]

Мнение от Niiicu » 28 Апр 2020, 20:22

OciXCrom написа: 28 Апр 2020, 14:37 Since the events can be combined in multiple ways and the plugin can be used in games different than Counter-Strike, I don't think adding those messages in the plugin is a good idea. Although I guess it can easily be made for some of the ones you mentioned.

For bomb plant/explode, check these lines in the code:

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

]public bomb_planted(id)
{
	give_user_xp(id, get_xp_reward(id, XPREWARD_BOMB_PLANTED), CRXRANKS_XPS_REWARD)
}

public bomb_defused(id)
{
	give_user_xp(id, get_xp_reward(id, XPREWARD_BOMB_DEFUSED), CRXRANKS_XPS_REWARD)
}

public bomb_explode(id)
{
	give_user_xp(id, get_xp_reward(id, XPREWARD_BOMB_EXPLODED), CRXRANKS_XPS_REWARD)
}
To add a message for planting the bomb, modify the first function like this:

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

public bomb_planted(id)
{
	new szName[MAX_NAME_LENGTH]
	get_user_name(id, szName, charsmax(szName))
	new iReward = get_xp_reward(id, XPREWARD_BOMB_PLANTED)
	give_user_xp(id, iReward, CRXRANKS_XPS_REWARD)
	CC_SendMessage(0, "Player %s received %i XP for planting the bomb", szName, iReward)
}
The same goes for the other 2 similar functions. I will probably add these messages in the next update since they're not a big deal.

About team wins - this can't be done with one message because te XP reward can be different for players, e.g. if they are VIP.
About kills with weapons - not really possible, because the plugin combines the XP from the weapon kill with the normal kill, headshot and stuff like that to form the final XP reward if the setting is enabled.
I've made the changes, it's working and it looks amazing on the server :)
Thank you and thank you for this amazing plugin.
CS.AVENGERSCS.RO - Classic

Аватар
Shanhaya
Извън линия
Потребител
Потребител
Мнения: 26
Регистриран на: 20 Мар 2020, 22:48
Се отблагодари: 6 пъти
Получена благодарност: 3 пъти

OciXCrom's Rank System [XP|Levels|Ranks]

Мнение от Shanhaya » 29 Апр 2020, 17:57

Добър ден. При компилация ми излизат следните грешки:

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

plugin.sma(896) : error 047: array sizes do not match, or destination array is too small
plugin.sma(1196) : error 047: array sizes do not match, or destination array is too small
plugin.sma(1613) : error 047: array sizes do not match, or destination array is too small

3 Errors.
Could not locate output file plugin.amx (compile failed).

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

OciXCrom's Rank System [XP|Levels|Ranks]

Мнение от OciXCrom » 29 Апр 2020, 20:37

Shanhaya написа: 29 Апр 2020, 17:57 Добър ден. При компилация ми излизат следните грешки:

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

plugin.sma(896) : error 047: array sizes do not match, or destination array is too small
plugin.sma(1196) : error 047: array sizes do not match, or destination array is too small
plugin.sma(1613) : error 047: array sizes do not match, or destination array is too small

3 Errors.
Could not locate output file plugin.amx (compile failed).
99% съм сигурен, че си изтеглил готов мод от някъде и целият АМХХ ти е прецакан. Изтегли си чист АМХХ от официалния уебсайт. Тази грешка няма логика.

Аватар
Shanhaya
Извън линия
Потребител
Потребител
Мнения: 26
Регистриран на: 20 Мар 2020, 22:48
Се отблагодари: 6 пъти
Получена благодарност: 3 пъти

OciXCrom's Rank System [XP|Levels|Ranks]

Мнение от Shanhaya » 29 Апр 2020, 20:42

И аз не виждам логика. Какво общо има мода, като просто компилирам кода на плъгина? Както и да е, оправих се, благодаря.

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

Обратно към “Одобрени плъгини”

Кой е на линия

Потребители разглеждащи този форум: 0 регистрирани и 21 госта