Raised This Month: $51 Target: $400
 12% 

[Request] OciXCrom Rank System


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
romeo72
Member
Join Date: Oct 2021
Old 12-04-2021 , 11:49   [Request] OciXCrom Rank System
Reply With Quote #1

Hello everyone,

I have a wish for a plugin and I hope that maybe a nice user could adapt it to this plugin:

OciXCrom Rank System

would it be possible to design it so that a bonus is added after each level up (level 1-7)?

I'll give you an example:
level 1 up = parachute
level 2 up = parachute, gold ak
level 3 up = parachute, gold ak, gold awp

and so on and so on.

It would be ideal if you could adapt the rank system so that you could add the bonus plugins yourself. so that you might be able to use a bunny hop plugin later instead of level 2 (gold ak).
Unfortunately, since I have no idea about coding and I don't know whether this is even feasible, I would be happy if a nice user / coder who might want to do it could create it for me.

and please excuse my bad english and hope that you can understand me and my question!

best thanks in advance!

best regards
__________________

Last edited by romeo72; 12-04-2021 at 11:50.
romeo72 is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 12-04-2021 , 13:43   Re: [Request] OciXCrom Rank System
Reply With Quote #2

In order to "adapt" a plugin, you need to post said plugin.

Find the plugins you want to use so they can be modified to work like you described. The Rank System has an entire API that can be used for adapting plugins to work with it. No changes are required in the rank system itself.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
romeo72
Member
Join Date: Oct 2021
Old 12-04-2021 , 13:56   Re: [Request] OciXCrom Rank System
Reply With Quote #3

hello OciCXrom,

if i got it right, should i post 7 plugins that should be inserted in the rank system?

best regards
__________________
romeo72 is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 12-04-2021 , 20:21   Re: [Request] OciXCrom Rank System
Reply With Quote #4

Yes, plugins that you want and know work properly.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
romeo72
Member
Join Date: Oct 2021
Old 12-05-2021 , 09:35   Re: [Request] OciXCrom Rank System
Reply With Quote #5

hello OciXCrom,

Thank you for your reply!
Would you like to have the plugins linked or is the name of the different plugins enough for you?
then I would put the plugins together.

I still have a short question, if I want to replace a plugin with another plugin later, would that work or could I replace it myself?

best regards and thank you very much !!
__________________
romeo72 is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 12-05-2021 , 10:11   Re: [Request] OciXCrom Rank System
Reply With Quote #6

Naturally posting links is much easier than someone searching them by their name and possibly getting the wrong ones.

Quote:
I still have a short question, if I want to replace a plugin with another plugin later, would that work or could I replace it myself?
I don't understand the question.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 12-05-2021 , 10:23   Re: [Request] OciXCrom Rank System
Reply With Quote #7

Quote:
Originally Posted by OciXCrom View Post
Naturally posting links is much easier than someone searching them by their name and possibly getting the wrong ones.



I don't understand the question.
He means if you edit parachute plugin A to work with your rank system and then later he finds a (potentially better) parachute plugin B and swaps them.

Plugin B will need to be edited to work with the rank system, just like A.
__________________
HamletEagle is offline
romeo72
Member
Join Date: Oct 2021
Old 12-12-2021 , 07:02   Re: [Request] OciXCrom Rank System
Reply With Quote #8

Hello OciXCrom,

sorry that it took me so long to answer!
I have just read that your custom shop can be used in points system with your rank system. So that you can pay with xp points instead of money at the custom shop !?

What do I have to change in the custom shop in order to use points? that would be nice if you could explain that to me!

That would be perfect and my wishes would be enough.
If that should work with the dots, then maybe I just have one wish that you could add the parachute to your custom shop for me.

Parachute (I hope this is the right one)

Just like you did with the No recoil addon or gold ak addon, for example. That would be great !!!

thank you in advance!

best regards
__________________

Last edited by romeo72; 12-12-2021 at 07:31.
romeo72 is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 12-12-2021 , 08:18   Re: [Request] OciXCrom Rank System
Reply With Quote #9

In order to make Custom Shop to work with XP, simply change this in cshop_settings.inc and recompile Custom Shop's plugins:

PHP Code:
#include <cstrike>

#define get_user_money(%1) cs_get_user_money(%1)
#define set_user_money(%1,%2) cs_set_user_money(%1, %2) 
To:

PHP Code:
#include <crxranks>

#define get_user_money(%1) crxranks_get_user_xp(%1)
#define set_user_money(%1,%2) crxranks_set_user_xp(%1, %2) 
I have edited a parachute plugin to work with the shop a few years ago. Check here - https://amxx-bg.info/forum/viewtopic...p=19459#p19459
__________________

Last edited by OciXCrom; 12-12-2021 at 08:20.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
romeo72
Member
Join Date: Oct 2021
Old 12-12-2021 , 09:15   Re: [Request] OciXCrom Rank System
Reply With Quote #10

Hello OciXCrom,

Thank you for your quick response and help!
I changed the cshop_settings.inc file as described above.

then I recompiled the two cshop_items.sma and custom_shop.sma local on my pc.

then I have the two new files added on my server under / plugins:
cshop_items.amxx
custom_shop.amxx

I also added the changed cshop_settings.inc on my server under / scripting / include.

Code:
#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)
when i go to the game / shop, i still get the message that i have to pay with money !?
do you have an idea what i did wrong?

Regarding the parachute, do I insert this like your norecoil addon?

best regards
__________________

Last edited by romeo72; 12-12-2021 at 09:28.
romeo72 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:31.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode