Raised This Month: $32 Target: $400
 8% 

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


Post New Thread Reply   
 
Thread Tools Display Modes
romeo72
Member
Join Date: Oct 2021
Old 12-03-2021 , 02:37   Re: OciXCrom's Rank System [XP|Levels|Ranks]
Reply With Quote #721

Hello everyone,

I use the OciXCrom Rank System. now i wanted to ask if it is possible to get a bonus as soon as you have reached a new level? like a parachute. after you have reached the next level you would get a new weapon model (gold ak) and so on.

example:
level up = parachute
next level up = parachute, gold ak
next level up = parachute, gold ak, gold awp

I would be happy if you could help me further!

best regards
__________________

Last edited by romeo72; 12-03-2021 at 08:36.
romeo72 is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 12-03-2021 , 13:39   Re: OciXCrom's Rank System [XP|Levels|Ranks]
Reply With Quote #722

Yes, it's possible by finding plugins that give those things and editing them to work with specified levels.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
romeo72
Member
Join Date: Oct 2021
Old 12-03-2021 , 13:50   Re: OciXCrom's Rank System [XP|Levels|Ranks]
Reply With Quote #723

hello OciXCrom,

Thank you for your feedback signal !
Does this have to be coded or can you do it yourself with a simple plug-in?
if so, could you maybe give me an example of how to do it?
I'm not a coder

thank you very much !!

best regards
__________________
romeo72 is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 12-03-2021 , 15:34   Re: OciXCrom's Rank System [XP|Levels|Ranks]
Reply With Quote #724

Of course it has to be coded. The plugin can't just know by itself when it should work.
If you're not a coder and are not willing to try doing it, you're better off posting a request in the proper section.

If you're willing to try, it's nothing complicated. You just need to make the portion of the code activate only if the player has the required level.

Code:
#include <crxranks> if(crxranks_get_user_level(id) >= desired_level) {     // code... }
OciXCrom is offline
Send a message via Skype™ to OciXCrom
romeo72
Member
Join Date: Oct 2021
Old 12-04-2021 , 10:17   Re: OciXCrom's Rank System [XP|Levels|Ranks]
Reply With Quote #725

hello OciXCrom,

thank you again for your answer and help!
I don't think I can do it myself :-/
i will post a request in the request forum afterwards. maybe I'm lucky that a nice user adapts it to me if he has time and desire.
in any case, many, many thanks again!

best regards
__________________
romeo72 is offline
romeo72
Member
Join Date: Oct 2021
Old 12-16-2021 , 09:31   Re: OciXCrom's Rank System [XP|Levels|Ranks]
Reply With Quote #726

Hi, everyone,

I have a question about the rank system. Is it possible that the player (not admin) can reset his xp himself? or that both have the possibility to reset?
for admin the command is: crxranks_reset_xp
for other players ?

best regards
__________________

Last edited by romeo72; 12-16-2021 at 09:31.
romeo72 is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 12-16-2021 , 15:55   Re: OciXCrom's Rank System [XP|Levels|Ranks]
Reply With Quote #727

Command: crxranks_reset_xp [player]
Non-admins (flag "d") can only use it on themselves.

Code:
#include <amxmodx> #include <amxmisc> #include <cromchat> #include <crxranks> #if !defined MAX_NAME_LENGTH const MAX_NAME_LENGTH = 32 #endif const ADMIN_FLAG = ADMIN_BAN public plugin_init() {     register_plugin("CRXRanks: Reset XP Command", "1.0", "OciXCrom")     register_concmd("crxranks_reset_xp", "Cmd_ResetXP", ADMIN_ALL, "[player] -- resets players' XP")     crxranks_get_chat_prefix(CC_PREFIX, charsmax(CC_PREFIX)) } public Cmd_ResetXP(id, iLevel, iCid) {     if(!cmd_access(id, iLevel, iCid, 1))     {         return PLUGIN_HANDLED     }     new szPlayer[MAX_NAME_LENGTH]     read_argv(1, szPlayer, charsmax(szPlayer))     new iPlayer = cmd_target(id, szPlayer, CMDTARGET_ALLOW_SELF)     if(!iPlayer)     {         return PLUGIN_HANDLED     }     if(get_user_flags(id) & ADMIN_FLAG)     {         new szName[2][MAX_NAME_LENGTH]         get_user_name(id, szName[0], charsmax(szName[]))         get_user_name(iPlayer, szName[1], charsmax(szName[]))         crxranks_set_user_xp(iPlayer, 0)         CC_LogMessage(0, _, "&x03%s &x01reset &x03%s&x01's XP!", szName[0], szName[1])     }     else     {         if(id == iPlayer)         {             new szName[MAX_NAME_LENGTH]             get_user_name(id, szName, charsmax(szName))             crxranks_set_user_xp(id, 0)             CC_LogMessage(0, _, "&x03%s &x01reset his own XP!", szName)         }         else         {             console_print(id, "* You can only reset your own XP!")         }     }     return PLUGIN_HANDLED }
__________________

Last edited by OciXCrom; 12-16-2021 at 15:56.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
rumble
Junior Member
Join Date: Oct 2020
Old 12-16-2021 , 23:50   Re: OciXCrom's Rank System [XP|Levels|Ranks]
Reply With Quote #728

Quote:
Originally Posted by rumble View Post
Hi OciXCrom's, I have a question, could you add "reset" to your system?
In other words, all the players who reach the maximum level will reset their level, and they will be awarded a "reset" point.
this points can be a requirement to acquire or unlock things.
like for example you plugin of knife "Knife Models [XP System & Skills Support]".
that is to say that apart from having a level requirement also in some you can place reset points to unlock.
for example :

[Default]
V_MODEL = models/v_knife.mdl

[KNIFE 2 [LVL 5 - RESET 0]]
V_MODEL = models/v_knife.mdl
LEVEL = 5
RESET = 0

[KNIFE3 [LVL 10 - RESET 1]]
V_MODEL = models/v_knife.mdl
LEVEL = 10
RESET = 1
hi OciXCrom, is it possible that I can perform this update?
I think it would be the only thing that your system needs.
It would give much more play when reaching the maximum level and in this way the players would not lose all the progress at the time of restart since they will accumulate 1 reset point at the time of restart .
rumble is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 12-17-2021 , 09:41   Re: OciXCrom's Rank System [XP|Levels|Ranks]
Reply With Quote #729

I started doing the update a while ago and it's somewhat completed. You gain new tiers each time you reach the max level.

However I don't know when I'll finish it as I'm not very active lately and there are a lot of changes and testing required.
__________________

Last edited by OciXCrom; 12-17-2021 at 09:41.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
romeo72
Member
Join Date: Oct 2021
Old 12-17-2021 , 11:24   Re: OciXCrom's Rank System [XP|Levels|Ranks]
Reply With Quote #730

Hello OciXcrom,

First of all thanks for your answer !
what do you mean exactly ?

must this line:
Quote:
register_concmd("crxranks_reset_xp", "Cmd_ResetXP", ADMIN_ALL, "[player] -- resets players' XP")
can be changed as follows:
Quote:
register_concmd("crxranks_reset_xp", "Cmd_ResetXP", flag "d", "[player] -- resets players' XP")
Unfortunately, I do not have the necessary knowledge to understand what you mean. would be nice if you could explain this to me briefly.

best regards
__________________
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 15:53.


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