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

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


Post New Thread Reply   
 
Thread Tools Display Modes
bLacK-bLooD
AlliedModders Donor
Join Date: Jun 2008
Old 11-25-2018 , 08:24   Re: OciXCrom's Rank System [XP|Levels|Ranks]
Reply With Quote #131

I understand, thank you for your reply anyway.

Do you mean amxmodx 1.9? Beacause 1.10 is not on amxmodx.org dev builds.
__________________
We all live under the same sky but we have different horizons.
bLacK-bLooD is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 11-25-2018 , 08:34   Re: OciXCrom's Rank System [XP|Levels|Ranks]
Reply With Quote #132

It is - https://www.amxmodx.org/downloads-new.php?branch=master

Another solution is waiting for me to add MySQL support to the plugin and trying to use that as a saving method.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
bLacK-bLooD
AlliedModders Donor
Join Date: Jun 2008
Old 11-25-2018 , 08:39   Re: OciXCrom's Rank System [XP|Levels|Ranks]
Reply With Quote #133

Quote:
Originally Posted by OciXCrom View Post
It is - https://www.amxmodx.org/downloads-new.php?branch=master

Another solution is waiting for me to add MySQL support to the plugin and trying to use that as a saving method.
Yes, that sure sounds like a good idea. Good work with everything you have done, by the way. I like your work and professionalism.

By the way, is there an easy way to add benefits for each rank?

For example, each level gets 50$ extra, or at level 10 you start receiving HE grenades, or at level 20 you get automatically an AK47, etc.?
__________________
We all live under the same sky but we have different horizons.
bLacK-bLooD is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 11-25-2018 , 08:45   Re: OciXCrom's Rank System [XP|Levels|Ranks]
Reply With Quote #134

Thanks.

Yes, those things can be made very easily. Here's a bunch of already made addons for the plugin - https://www.amxx-bg.info/pluginlab/?name=rank (scroll down)

Here's a simple example on how to get a HE grenade on each spawn if you're level 10 or above:

PHP Code:
#include <amxmodx>
#include <crxranks>
#include <fun>
#include <hamsandwich>

public plugin_init()
{
    
register_plugin("CRXRanks: Weapon Example""1.0""OciXCrom")
    
RegisterHam(Ham_Spawn"player""OnPlayerSpawn"1)
}

public 
OnPlayerSpawn(id)
{
    if(!
is_user_alive(id))
        return

    if(
crxranks_get_user_level(id) >= 10)
        
give_item(id"weapon_hegrenade")

__________________

Last edited by OciXCrom; 11-25-2018 at 08:46.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
bLacK-bLooD
AlliedModders Donor
Join Date: Jun 2008
Old 11-25-2018 , 13:06   Re: OciXCrom's Rank System [XP|Levels|Ranks]
Reply With Quote #135

Quote:
Originally Posted by OciXCrom View Post
Thanks.

Yes, those things can be made very easily. Here's a bunch of already made addons for the plugin - https://www.amxx-bg.info/pluginlab/?name=rank (scroll down)

Here's a simple example on how to get a HE grenade on each spawn if you're level 10 or above:

PHP Code:
#include <amxmodx>
#include <crxranks>
#include <fun>
#include <hamsandwich>

public plugin_init()
{
    
register_plugin("CRXRanks: Weapon Example""1.0""OciXCrom")
    
RegisterHam(Ham_Spawn"player""OnPlayerSpawn"1)
}

public 
OnPlayerSpawn(id)
{
    if(!
is_user_alive(id))
        return

    if(
crxranks_get_user_level(id) >= 10)
        
give_item(id"weapon_hegrenade")

Nice! Would be pretty cool to have an .ini file where you can customize the benefits of each rank. Something like:

"10" "he" "1"
Which translates to: "the level" "what to get" and "how many"

Also ">10" would mean that any level over level 10 should get that item.

I know this is not easy, but it's a nice idea.

Keep up the good work, we appreciate it.
__________________
We all live under the same sky but we have different horizons.

Last edited by bLacK-bLooD; 11-25-2018 at 13:07.
bLacK-bLooD is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 11-25-2018 , 13:32   Re: OciXCrom's Rank System [XP|Levels|Ranks]
Reply With Quote #136

I prefer having subplugins for each option instead of putting everything in one plugin which is very unorganized. You can post a request if you want specific extras made for the plugin.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
NemixDev
New Member
Join Date: Nov 2018
Old 12-01-2018 , 17:01   Re: OciXCrom's Rank System [XP|Levels|Ranks]
Reply With Quote #137

Ummmmm, i know its too much, but can someone edit it for kz hehe ?
To get xp on end timer press
NemixDev is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 12-02-2018 , 13:06   Re: OciXCrom's Rank System [XP|Levels|Ranks]
Reply With Quote #138

Post the KZ mod's .sma file so I can edit it. It's not too much, only 1 line needs to be added (well 2 actually).
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
paulitooo
Member
Join Date: Dec 2018
Old 12-02-2018 , 18:07   Re: OciXCrom's Rank System [XP|Levels|Ranks]
Reply With Quote #139

//// crx_ranksystem.sma
// C:\Users\EMzo\Desktop\compiler\compiler\crx_r anksystem.sma(206) : error 017: undefined symbol "TrieCreate"
// C:\Users\EMzo\Desktop\compiler\compiler\crx_r anksystem.sma(207) : error 017: undefined symbol "TrieCreate"
// C:\Users\EMzo\Desktop\compiler\compiler\crx_r anksystem.sma(207 -- 209) : warning 213: tag mismatch
// C:\Users\EMzo\Desktop\compiler\compiler\crx_r anksystem.sma(216) : error 017: undefined symbol "TrieDestroy"
// C:\Users\EMzo\Desktop\compiler\compiler\crx_r anksystem.sma(217) : error 017: undefined symbol "TrieDestroy"
// C:\Users\EMzo\Desktop\compiler\compiler\crx_r anksystem.sma(519) : error 017: undefined symbol "TrieSetCell"
// C:\Users\EMzo\Desktop\compiler\compiler\crx_r anksystem.sma(523) : error 017: undefined symbol "TrieSetCell"
// C:\Users\EMzo\Desktop\compiler\compiler\crx_r anksystem.sma(879) : error 017: undefined symbol "TrieKeyExists"
// C:\Users\EMzo\Desktop\compiler\compiler\crx_r anksystem.sma(881) : error 017: undefined symbol "TrieGetCell"
// C:\Users\EMzo\Desktop\compiler\compiler\crx_r anksystem.sma(886) : error 017: undefined symbol "TrieKeyExists"
// C:\Users\EMzo\Desktop\compiler\compiler\crx_r anksystem.sma(88 : error 017: undefined symbol "TrieGetCell"

I can not compiler sma file anybody have amxx file ?
paulitooo is offline
X3.
Junior Member
Join Date: Sep 2018
Old 12-02-2018 , 20:24   Re: OciXCrom's Rank System [XP|Levels|Ranks]
Reply With Quote #140

Quote:
Originally Posted by paulitooo View Post
//// crx_ranksystem.sma
// C:\Users\EMzo\Desktop\compiler\compiler\crx_r anksystem.sma(206) : error 017: undefined symbol "TrieCreate"
// C:\Users\EMzo\Desktop\compiler\compiler\crx_r anksystem.sma(207) : error 017: undefined symbol "TrieCreate"
// C:\Users\EMzo\Desktop\compiler\compiler\crx_r anksystem.sma(207 -- 209) : warning 213: tag mismatch
// C:\Users\EMzo\Desktop\compiler\compiler\crx_r anksystem.sma(216) : error 017: undefined symbol "TrieDestroy"
// C:\Users\EMzo\Desktop\compiler\compiler\crx_r anksystem.sma(217) : error 017: undefined symbol "TrieDestroy"
// C:\Users\EMzo\Desktop\compiler\compiler\crx_r anksystem.sma(519) : error 017: undefined symbol "TrieSetCell"
// C:\Users\EMzo\Desktop\compiler\compiler\crx_r anksystem.sma(523) : error 017: undefined symbol "TrieSetCell"
// C:\Users\EMzo\Desktop\compiler\compiler\crx_r anksystem.sma(879) : error 017: undefined symbol "TrieKeyExists"
// C:\Users\EMzo\Desktop\compiler\compiler\crx_r anksystem.sma(881) : error 017: undefined symbol "TrieGetCell"
// C:\Users\EMzo\Desktop\compiler\compiler\crx_r anksystem.sma(886) : error 017: undefined symbol "TrieKeyExists"
// C:\Users\EMzo\Desktop\compiler\compiler\crx_r anksystem.sma(88 : error 017: undefined symbol "TrieGetCell"

I can not compiler sma file anybody have amxx file ?
Try to update your compiler

Last edited by X3.; 12-02-2018 at 20:25.
X3. 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 08:11.


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