Bonus addon for OciXCrom Rank

В този раздел можете да подавате всякакви заявки за намиране, изработка или преработка на плъгини/модове.
Аватар
lantimilan
Извън линия
Foreigner
Foreigner
Мнения: 424
Регистриран на: 29 Ное 2017, 22:49
Се отблагодари: 31 пъти
Получена благодарност: 3 пъти

Bonus addon for OciXCrom Rank

Мнение от lantimilan » 04 Яну 2020, 13:49

Hello its possible to add one addon bonus with points, to add and one line in HUD $brr$Points : when you arrived 20 or any value you can open one menu p.s name /bonus and to show menu [OciXCrom Rank] What do you want ?
1. AK47 - ammo
2. M4A1 - ammo
3. AWP - ammo
4. 10000 $
5. 200HP
6. 3000 XP
7. MegaGrenade (300 damage)
8. Mega Deagle (200 damage)

I write this if somebody have any other idea you can write :D
Последно промяна от OciXCrom на 05 Яну 2020, 00:31, променено общо 1 път.

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

Addon for OciXCrom Rank

Мнение от OciXCrom » 05 Яну 2020, 00:31

You can use my shop and make it work with points from the rank system instead of default money.

Аватар
lantimilan
Извън линия
Foreigner
Foreigner
Мнения: 424
Регистриран на: 29 Ное 2017, 22:49
Се отблагодари: 31 пъти
Получена благодарност: 3 пъти

Shop addon for OciXCrom Rank

Мнение от lantimilan » 05 Яну 2020, 08:02

How to make with points and to show in line HUD points ?

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

Shop addon for OciXCrom Rank

Мнение от OciXCrom » 05 Яну 2020, 15:01

Let me make sure I understood you correctly this time - you want to use the XP from the rank system to buy items from the shop? If yes, keep reading.

You need to replace the cshop_settings.inc file's contents with this:

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

#if defined _cshop_settings_included
    #endinput
#endif

#include <crxranks>

#define _cshop_settings_included
#define DEFAULT_SOUND "items/gunpickup2.wav"
#define FLAG_ADMIN ADMIN_BAN
#define LANG_TYPE LANG_SERVER
#define MAX_ITEMS 100

/*
	* Change the lines below if you want to use a native for your money currency, e.g. Ammo Packs, BaseBuilder Credits, JBPacks, etc.
	* Example (%1 = id | %2 = amount):
		native zp_get_user_ammo_packs(id)
		native zp_set_user_ammo_packs(id, amount)
		#define get_user_money(%1) zp_get_user_ammo_packs(%1)
		#define set_user_money(%1,%2) zp_set_user_ammo_packs(%1, %2)
*/
#define get_user_money(%1) crxranks_get_user_xp(%1)
#define set_user_money(%1,%2) crxranks_set_user_xp(%1, %2)

/* Don't touch this line unless you know what you're doing */
#define take_user_money(%1,%2) set_user_money(%1, get_user_money(%1) - %2)
Then recompile custom_shop.sma.
This will make the shop use the points (XP) from my rank system.

What do you mean about the HUD? The XP is already shown in the HUD.
Or do you want to use another type of points and show them in the rank system's HUD along with the XP?

Аватар
lantimilan
Извън линия
Foreigner
Foreigner
Мнения: 424
Регистриран на: 29 Ное 2017, 22:49
Се отблагодари: 31 пъти
Получена благодарност: 3 пъти

Shop addon for OciXCrom Rank

Мнение от lantimilan » 05 Яну 2020, 16:17

You not understand me correct i dont set shop, i want one plugin like points,bonus when you kill 1 person to win p.s 1 point when you arrived 200 point you can open menu /points and to take anything from special , for HUD i think $br$[Points: $points$] to show in HUD your points and your friend poinst read again my first post, thanks for your asnwered ;)

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

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

Кой е на линия

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