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

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


Post New Thread Reply   
 
Thread Tools Display Modes
Ark_Procession
Senior Member
Join Date: Jun 2020
Location: Argentina
Old 08-12-2020 , 14:16   Re: OciXCrom's Rank System [XP|Levels|Ranks]
Reply With Quote #451

Quote:
Originally Posted by OciXCrom View Post
Please put the code between proper [code] tags so it can be readable.
Try moving the plugin before my rank system in plugins.ini.

Edit: the problem is in the "make_deathmsg" function. This function cannot be hooked by other plugins and needs to be replaced with a hookable one. Please fix your post first.
I'm really sorry OciXCrom, as i am new to the forum i didn't pay enough attention to that.
I made the code properly to be read.

If you can help me modify the code of that mod so it works with rank system, that would be awesome!

Thanks for your time!

Last edited by Ark_Procession; 08-12-2020 at 14:16.
Ark_Procession is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 08-12-2020 , 15:16   Re: OciXCrom's Rank System [XP|Levels|Ranks]
Reply With Quote #452

Replace:

Code:
make_deathmsg(killer, victim, headshot, weapname)

With:

Code:
static msgid = 0 if (!msgid) {     msgid = get_user_msgid("DeathMsg") } emessage_begin(MSG_ALL, msgid, {0,0,0}, 0) ewrite_byte(killer) ewrite_byte(victim) static mod_name[32] if (!mod_name[0]) {     get_modname(mod_name, 31) } if (equal(mod_name, "cstrike") || equal(mod_name, "czero") || equal(mod_name, "csv15") || equal(mod_name, "cs13"))     ewrite_byte(headshot) ewrite_string(weapname) emessage_end()
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Ark_Procession
Senior Member
Join Date: Jun 2020
Location: Argentina
Old 08-12-2020 , 18:04   Re: OciXCrom's Rank System [XP|Levels|Ranks]
Reply With Quote #453

Quote:
Originally Posted by OciXCrom View Post
Replace:

Code:
make_deathmsg(killer, victim, headshot, weapname)

With:

Code:
static msgid = 0 if (!msgid) {     msgid = get_user_msgid("DeathMsg") } emessage_begin(MSG_ALL, msgid, {0,0,0}, 0) ewrite_byte(killer) ewrite_byte(victim) static mod_name[32] if (!mod_name[0]) {     get_modname(mod_name, 31) } if (equal(mod_name, "cstrike") || equal(mod_name, "czero") || equal(mod_name, "csv15") || equal(mod_name, "cs13"))     ewrite_byte(headshot) ewrite_string(weapname) emessage_end()

Thanks! I did it and i get this warnings:

Code:
//// custom_extra_damage_mod.sma
// C:\Program Files (x86)\Steam\steamapps\common\Half-Life\cstrike\addons\amxmodx\scripting\custom_extra_damage_mod.sma(219) : warning 217: loose indentation
// C:\Program Files (x86)\Steam\steamapps\common\Half-Life\cstrike\addons\amxmodx\scripting\custom_extra_damage_mod.sma(238) : warning 217: loose indentation
// Header size:           1536 bytes
// Code size:            13964 bytes
// Data size:             5276 bytes
// Stack/heap size:      16384 bytes; estimated max. usage=782 cells (3128 bytes)
// Total requirements:   37160 bytes
//
// 2 Warnings.
// Done.
//
// Compilation Time: 0,16 sec
// ----------------------------------------

Press enter to exit ...
Other than that it works flawlessly!

Your are great! many many thanks for your time and talents!

Last edited by Ark_Procession; 08-12-2020 at 18:34.
Ark_Procession is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 08-12-2020 , 21:42   Re: OciXCrom's Rank System [XP|Levels|Ranks]
Reply With Quote #454

There are warnings because you didn't align the code properly. You can ignore them.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Ark_Procession
Senior Member
Join Date: Jun 2020
Location: Argentina
Old 08-12-2020 , 21:55   Re: OciXCrom's Rank System [XP|Levels|Ranks]
Reply With Quote #455

Quote:
Originally Posted by OciXCrom View Post
There are warnings because you didn't align the code properly. You can ignore them.
Thanks a Lot! you are great! i knew i could ask you for help!

Are you working on any update for your awesome Rank system?
Ark_Procession is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 08-13-2020 , 07:26   Re: OciXCrom's Rank System [XP|Levels|Ranks]
Reply With Quote #456

Yes, I have some plans that include adding a top15 and similar statistics, as well as tiers which will be another way of ranking players. Whenever you reach the final level, you gain +1 tier and get reset back to level 1. Of course, this will be optional and can be disabled.

But, I can't say for certain when this update will come as I'm not much into AMXX plugins at the moment.
__________________

Last edited by OciXCrom; 08-13-2020 at 07:26.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Ark_Procession
Senior Member
Join Date: Jun 2020
Location: Argentina
Old 08-13-2020 , 18:49   Re: OciXCrom's Rank System [XP|Levels|Ranks]
Reply With Quote #457

Quote:
Originally Posted by OciXCrom View Post
Yes, I have some plans that include adding a top15 and similar statistics, as well as tiers which will be another way of ranking players. Whenever you reach the final level, you gain +1 tier and get reset back to level 1. Of course, this will be optional and can be disabled.

But, I can't say for certain when this update will come as I'm not much into AMXX plugins at the moment.
Would you consider a bet system? Like when there are only 2 alive from different teams, make a bet on your team and win double exp if you win or lose double xp if you lose?
and only applicable when you have round win/lose xp activated.
Ark_Procession is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 08-13-2020 , 20:58   Re: OciXCrom's Rank System [XP|Levels|Ranks]
Reply With Quote #458

This can be done by modifying any currently existing bet plugin.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Ark_Procession
Senior Member
Join Date: Jun 2020
Location: Argentina
Old 08-23-2020 , 19:06   Re: OciXCrom's Rank System [XP|Levels|Ranks]
Reply With Quote #459

OcixCrom:

Which coordinates should i use to get the hud to the top of the screen?
i've tried several numbers but i only can get it into the middle of the screen and if i push any other value the dhud comes back to the bottom center of the screen
(I activated the DHUD option)
Ark_Procession is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 08-24-2020 , 16:04   Re: OciXCrom's Rank System [XP|Levels|Ranks]
Reply With Quote #460

https://amxx-bg.info/hudgenerator/ - move the message with your mouse to get the X, Y position.
-1.0 means center.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
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 17:21.


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