AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   New Plugin Submissions (https://forums.alliedmods.net/forumdisplay.php?f=26)
-   -   OciXCrom's Rank System [XP|Levels|Ranks] (https://forums.alliedmods.net/showthread.php?t=308540)

HamletEagle 12-17-2021 11:52

Re: OciXCrom's Rank System [XP|Levels|Ranks]
 
Quote:

Originally Posted by romeo72 (Post 2766315)
Hello OciXcrom,

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

must this line:


can be changed as follows:


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

You don't need to do anything. Just install the plugin.

romeo72 12-17-2021 16:01

Re: OciXCrom's Rank System [XP|Levels|Ranks]
 
Hello HamletEagle,

Thank you for your prompt reply !!

Which file name do I compile the plugin with does not matter?
Can you tell me what the command is to reset the xp?
because crxranks_reset_xp doesn't work:

Quote:

You have no access to that command
I'm a normal player on the server


best regards

DruGzOG 12-17-2021 18:08

Re: OciXCrom's Rank System [XP|Levels|Ranks]
 
Quote:

Originally Posted by romeo72 (Post 2766334)
Hello HamletEagle,

Thank you for your prompt reply !!

Which file name do I compile the plugin with does not matter?
Can you tell me what the command is to reset the xp?
because crxranks_reset_xp doesn't work:



I'm a normal player on the server


best regards

Give yourself the appropriate admin permissions

romeo72 12-18-2021 03:48

Re: OciXCrom's Rank System [XP|Levels|Ranks]
 
Hi DruGzOG

the idea was that every player could reset their own xp.

and the admin can delete all. for example, if 1 year has passed.

I hope you understand what I mean !

best regards

OciXCrom 12-18-2021 05:47

Re: OciXCrom's Rank System [XP|Levels|Ranks]
 
The command is set for all players. I see no reason why you don't have access. Try to see if it works when you have access.

romeo72 12-19-2021 07:01

Re: OciXCrom's Rank System [XP|Levels|Ranks]
 
Hello OciXCrom,

I have registered myself again as admin on the server.
when I write the command in the console:
Quote:

crxranks_reset_xp
I get the following message:
Quote:

crxranks_reset_xp
Usage: crxranks_reset_xp <nick|#userid>
I only get this feedback as an admin. not as a normal player (visitor).

to rule out a mistake. I don't have to replace the code (plugin) from your post above with the crx_ranksystem.amxx (file)?
i had your code compiled and used a different name for it, for example:
Quote:

crx_rank_reset.amxx
best regards

OciXCrom 12-19-2021 09:25

Re: OciXCrom's Rank System [XP|Levels|Ranks]
 
You need to enter a player name as well.

Open configs/cmdaccess.ini and check the flag set for the command.

The location of the plugin in plugins.ini or its name does not matter.
This is a sub-plugin, not an entire replacement for the rank system. I think it's pretty obvious given its ~3000x times smaller size.

romeo72 12-19-2021 09:57

Re: OciXCrom's Rank System [XP|Levels|Ranks]
 
I have these four entries in cmdaccess.ini:
Quote:

"amx_givelvl" "q" ; RankSystem.amxx
"amx_givexp" "q" ; RankSystem.amxx
"crxranks_give_xp" "l" ; crx_ranksystem.amxx
"crxranks_reset_xp" "l" ; crx_ranksystem.amxx
must this be changed to ?:
Quote:

"crxranks_reset_xp" "d" ; crx_ranksystem.amxx
best regards

OciXCrom 12-19-2021 10:48

Re: OciXCrom's Rank System [XP|Levels|Ranks]
 
How did flag "l" even get there in the first place?
You should leave it blank so all players can use it regardless of access flags.

crxranks_reset_xp ""

OciXCrom 12-19-2021 10:51

Re: OciXCrom's Rank System [XP|Levels|Ranks]
 
Wait, I'm stupid and totally forgot that this command already exists in the default plugin.

So yes, the sub-plugin needs to be added before crx_ranksystem in plugins.ini. This way it will override the other command.


All times are GMT -4. The time now is 14:01.

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