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

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


Post New Thread Reply   
 
Thread Tools Display Modes
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 11-19-2020 , 13:59   Re: OciXCrom's Rank System [XP|Levels|Ranks]
Reply With Quote #521

You want the multiplier to depend on the player's current level? It's a nice idea, added in my to-do list.
For now, you can use this sub-plugin:

Code:
#include <amxmodx> #include <crxranks> const Float:XP_GET_MULTIPLIER = 1.5 const Float:XP_LOSE_MULTIPLIER = 0.5 public plugin_init() {     register_plugin("CRXRanks: XP Multipliers", "1.0", "OciXCrom") } public crxranks_user_receive_xp(id, iXP, CRXRanks_XPSources:iSource) {     if(iSource != CRXRANKS_XPS_ADMIN)     {         return floatround(iXP * crxranks_get_user_level(id) * (iXP > 0 ? XP_GET_MULTIPLIER : XP_LOSE_MULTIPLIER))     }     return CRXRANKS_CONTINUE }

It works like this: XP = XP * player's current level * multiplier

Bear in mind that the XP is a round number, so amounts such as 4.5 will be rounded down.

Quote:
And please make all mysql queries asynchronous if not do it before.
I'm not familiar with what that means. A quick search told me that SQL_ThreadQuery is a asynchronous function and it's used in the plugin.
__________________

Last edited by OciXCrom; 11-19-2020 at 14:04.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
karaulov
Senior Member
Join Date: Jul 2018
Old 11-19-2020 , 14:19   Re: OciXCrom's Rank System [XP|Levels|Ranks]
Reply With Quote #522

it seemed to me that asynchronous queries were not used in all functions. (SQL_ThreadQuery used only one time in all code)
Thanks! Great plugin!

Last edited by karaulov; 11-19-2020 at 14:36.
karaulov is offline
karaulov
Senior Member
Join Date: Jul 2018
Old 11-20-2020 , 16:26   Re: OciXCrom's Rank System [XP|Levels|Ranks]
Reply With Quote #523

This plugin works with latest AMX MOD X 1.10 ?

I sometime see XP NOTIFIER messages, sometime not, sometime see XP notifier if another player kill enemy...
Very strange...

And I don't see any XP LOSE messages.

Last edited by karaulov; 11-20-2020 at 16:27.
karaulov is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 11-20-2020 , 16:35   Re: OciXCrom's Rank System [XP|Levels|Ranks]
Reply With Quote #524

Of course it does. It even uses the new functions from 1.10 if the server is running on that version.

If you don't see HUD messages, that's because you have too many messages visible on the screen at the same time. Other plugins can easily overwrite HUD messages from any plugin, especially if they are constantly on the screen.

Try switching it to use DHUD instead, those have more channels than HUD.
__________________

Last edited by OciXCrom; 11-20-2020 at 16:36.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
karaulov
Senior Member
Join Date: Jul 2018
Old 11-20-2020 , 16:37   Re: OciXCrom's Rank System [XP|Levels|Ranks]
Reply With Quote #525

Thanks, I will try this.


But I see XP NOTIFIER even if I not kill enemy (Another player kill enemy and sometime I see "+10", etc)


(Sorry this is RankSystemTimeRewards plugin )) )

Last edited by karaulov; 11-20-2020 at 16:45.
karaulov is offline
karaulov
Senior Member
Join Date: Jul 2018
Old 11-20-2020 , 17:18   Re: OciXCrom's Rank System [XP|Levels|Ranks]
Reply With Quote #526

Possible to upgrate XP NOTIFIER for shows XP notifications in spectator mode ? ( for selected player )
karaulov is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 11-20-2020 , 18:11   Re: OciXCrom's Rank System [XP|Levels|Ranks]
Reply With Quote #527

Quote:
Originally Posted by karaulov View Post
Possible to upgrate XP NOTIFIER for shows XP notifications in spectator mode ? ( for selected player )
Added in my todo list.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
karaulov
Senior Member
Join Date: Jul 2018
Old 12-01-2020 , 11:35   Re: OciXCrom's Rank System [XP|Levels|Ranks]
Reply With Quote #528

How to add "$rankposition$" in stats line??(what position did the player take)

Last edited by karaulov; 12-01-2020 at 11:38.
karaulov is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 12-01-2020 , 12:43   Re: OciXCrom's Rank System [XP|Levels|Ranks]
Reply With Quote #529

There is no stats option currently available in the plugin.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
luciaus18
Senior Member
Join Date: Dec 2014
Old 12-01-2020 , 17:53   Re: OciXCrom's Rank System [XP|Levels|Ranks]
Reply With Quote #530

Hello! I'm using many pluings from you. I want to ask if that plugin with the score board which replace the score with the xp and level can show in the score board Xp and level instead of kills and death
luciaus18 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 16:13.


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