OciXCrom's Rank System [XP|Levels|Ranks]
-
impossible
Извън линия - Потребител
- Мнения: 488
- Регистриран на: 15 Юни 2019, 12:41
- Се отблагодари: 23 пъти
- Получена благодарност: 47 пъти
-
OciXCrom
Извън линия - Администратор
- Мнения: 7206
- Регистриран на: 06 Окт 2016, 19:20
- Местоположение: /resetscore
- Се отблагодари: 117 пъти
- Получена благодарност: 1295 пъти
- Обратна връзка:
OciXCrom's Rank System [XP|Levels|Ranks]
Компилиран плъгин няма да намериш в целия форум, не само в моите плъгини. Никога не трябва да слагаш компилирани плъгини директно от нета, тъй като може да съдържат задни вратички, да бъдат компилирани под друга АМХХ версия и прочие. Прочети горната тема и ще разбереш как.
-
psycho
Извън линия - Потребител
- Мнения: 15
- Регистриран на: 18 Авг 2018, 20:37
- Се отблагодари: 2 пъти
- Получена благодарност: 1 път
OciXCrom's Rank System [XP|Levels|Ranks]
При достигане на максималното ниво, играчът получава определения от настройките флаг, но след смяна на картата флагът изчезва, защо така?
-
Niiicu
Извън линия - Потребител
- Мнения: 88
- Регистриран на: 24 Апр 2020, 10:01
- Се отблагодари: 1 път
- Получена благодарност: 1 път
OciXCrom's Rank System [XP|Levels|Ranks]
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
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]
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:
To add a message for planting the bomb, modify the first function like this:
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.
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)
}
Код за потвърждение: Избери целия код
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)
}
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]
I've made the changes, it's working and it looks amazing on the serverOciXCrom написа: ↑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:
To add a message for planting the bomb, modify the first function like this:Код за потвърждение: Избери целия код
]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) }
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.Код за потвърждение: Избери целия код
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) }
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.
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]
Добър ден. При компилация ми излизат следните грешки:
Код за потвърждение: Избери целия код
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]
99% съм сигурен, че си изтеглил готов мод от някъде и целият АМХХ ти е прецакан. Изтегли си чист АМХХ от официалния уебсайт. Тази грешка няма логика.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).
-
Shanhaya
Извън линия - Потребител
- Мнения: 26
- Регистриран на: 20 Мар 2020, 22:48
- Се отблагодари: 6 пъти
- Получена благодарност: 3 пъти
OciXCrom's Rank System [XP|Levels|Ranks]
И аз не виждам логика. Какво общо има мода, като просто компилирам кода на плъгина? Както и да е, оправих се, благодаря.
-
- Подобни теми
- Отговори
- Преглеждания
- Последно мнение
-
- 8 Отговори
- 1813 Преглеждания
-
Последно мнение от The Pain
-
- 7 Отговори
- 3420 Преглеждания
-
Последно мнение от iv69
-
- 2 Отговори
- 2521 Преглеждания
-
Последно мнение от truex_88
-
- 2 Отговори
- 1047 Преглеждания
-
Последно мнение от Mr.!mP@$!bl3
-
- 1 Отговори
- 2577 Преглеждания
-
Последно мнение от OciXCrom
-
- 2 Отговори
- 1532 Преглеждания
-
Последно мнение от AfterLife
-
- 4 Отговори
- 2557 Преглеждания
-
Последно мнение от iv69
Кой е на линия
Потребители разглеждащи този форум: Bing [Bot] и 15 госта