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

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 07-13-2018 , 08:21   Re: OciXCrom's Rank System [XP|Levels|Ranks]
Reply With Quote #51

Quote:
Originally Posted by CzechPeter View Post
Code:
"L 07/11/2018 - 18:15:16: [AMXX] Run time error 10: native error (native "clamp")
L 07/11/2018 - 18:15:16: [AMXX]    [0] yb983cxt.sma.p::use_vault (line 677)
L 07/11/2018 - 18:15:16: [AMXX]    [1] yb983cxt.sma.p::ReadData (line 452)
L 07/11/2018 - 18:15:16: [AMXX] Displaying debug trace (plugin "crx_ranksystem.amxx", version "unknown)"
Please help
Fixed.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 07-19-2018 , 13:19   Re: OciXCrom's Rank System [XP|Levels|Ranks]
Reply With Quote #52


  • Changed the way the XP is saved in order to prevent data loss on server crash, map change, server restart, etc.
  • Added a new setting USE_COMBINED_EVENTS that allows you to choose whether the feature of the plugin for using combined XP rewards for multiple events will be enabled.
  • Added a new setting HUDINFO_OTHER_PLAYERS that allows players to see the HUD info of the player they're spectating when dead.
  • Added a new forward crxranks_user_receive_xp that allows the XP to be modified by other plugins before the player receives it.

In order to update the plugin from the previous version without losing your .ini file changes, it is necessary to replace all files in the scripting folder (along with the ones in the include folder) and add the following lines in the [Settings] section in the configuration file:

PHP Code:
# If set to 1, XP rewards will be combined for specific events.
# For example: killing a player with a headshot will reward both "kill" and "headshot" XP rewards, rather than only "headshot".
USE_COMBINED_EVENTS 1

# If set to 1, when dead, players will be able to see the HUD info of the player they are spectating.
# This setting will not work if HUDINFO_ALIVE_ONLY is set to 1.
HUDINFO_OTHER_PLAYERS 
__________________

Last edited by OciXCrom; 07-19-2018 at 13:19.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Myshu
Junior Member
Join Date: Jul 2017
Old 07-23-2018 , 15:52   Re: OciXCrom's Rank System [XP|Levels|Ranks]
Reply With Quote #53

I can't compile it

crx_ranksystem.sma(17) : fatal error 100: cannot read from file: "dhudmessage"

Solved.

If you got that error you only need to download this file: https://forums.alliedmods.net/showth...49210?t=149210

Edit:

I think it was better if you did that hud like this:

[Experience 50/100]
[Level: 1/3 Allied]

Last edited by Myshu; 07-24-2018 at 11:27.
Myshu is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 07-24-2018 , 14:33   Re: OciXCrom's Rank System [XP|Levels|Ranks]
Reply With Quote #54

You can change the HUD and make it whatever you like from the .ini file. For your specific suggestion, you need to change this:

PHP Code:
HUDINFO_FORMAT = [ XP$current_xp$/$next_xp$ | Level $level$/$max_levels$: $rank$ ] 
To this:

PHP Code:
HUDINFO_FORMAT = [Experience$current_xp$/$next_xp$]$br$[Level $level$/$max_levels$rank$] 
__________________

Last edited by OciXCrom; 07-24-2018 at 14:33.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 07-28-2018 , 14:26   Re: OciXCrom's Rank System [XP|Levels|Ranks]
Reply With Quote #55


  • Added a new setting TEAM_LOCK that allows you to make the plugin available only for a specific team, as well as HUDINFO_TEAM_LOCK.
  • Added a new setting MINIMUM_PLAYERS that allows you to make players unable to receive XP if there's less than X players in the server.
  • Added a new placeholder $name$ that can be used to display the player's name in the HUD info.

In order to update from the previous version (2.2) you need to replace crx_ranksystem.sma and recompile the plugin. You also need to add the following settings in the [Settings] section in the configuration file:

Code:
# By changing this setting you can make players able to receive XP only if they are on a specific team.
# The numbers shown below are for CS 1.6. For other games, you will need to find the correct team numbers.
# 0 = disabled | 1 = terrorists | 2 = counter-terrorists
TEAM_LOCK = 0

# If greater than 0, player's wont receive any XP if the amount of players in the server is less than the number specified here.
MINIMUM_PLAYERS = 0

# This setting is only available if TEAM_LOCK is non-zero.
# If enabled, players won't be able to see the HUD info if they are not on the team set in TEAM_LOCK.
# The same applies for the player they're spectating if HUDINFO_OTHER_PLAYERS is set to 1.
HUDINFO_TEAM_LOCK = 1
__________________

Last edited by OciXCrom; 07-28-2018 at 14:41.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 07-31-2018 , 09:15   Re: OciXCrom's Rank System [XP|Levels|Ranks]
Reply With Quote #56


  • Fixed a bug where VIP users don't receive bonus XP.
  • In order to update from version 2.3, simply replace the .sma file and recompile the plugin.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Myshu
Junior Member
Join Date: Jul 2017
Old 08-05-2018 , 03:03   Re: OciXCrom's Rank System [XP|Levels|Ranks]
Reply With Quote #57

Quote:
Originally Posted by OciXCrom View Post

  • Fixed a bug where VIP users don't receive bonus XP.
  • In order to update from version 2.3, simply replace the .sma file and recompile the plugin.
You can't add something like "/TopRank" it will ne useful for those who want to do a contest with prizes :-?
Myshu is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 08-05-2018 , 08:00   Re: OciXCrom's Rank System [XP|Levels|Ranks]
Reply With Quote #58

Quote:
Originally Posted by Myshu View Post
You can't add something like "/TopRank" it will ne useful for those who want to do a contest with prizes :-?
I'll release a sub plugin for that soon.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
feruchio
Member
Join Date: Feb 2016
Location: 93.123.18.81:27017
Old 08-07-2018 , 16:18   Re: OciXCrom's Rank System [XP|Levels|Ranks]
Reply With Quote #59

you rock man, keep it up ;)
__________________
feruchio is offline
tarsisd2
Veteran Member
Join Date: Feb 2016
Location: brazil
Old 08-13-2018 , 18:28   Re: OciXCrom's Rank System [XP|Levels|Ranks]
Reply With Quote #60

man, can you do me a big favor
can you add placeholder for $city$ to show players city while specting?

other ideia its to show HUD of online players only during buytime so we have more clear screen while playing?
tarsisd2 is offline
Reply


Thread Tools
Display Modes

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 18:36.


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