Raised This Month: $433 Target: $400
 108% 

Knife Models [XP System & Skills Support]


Post New Thread Reply   
 
Thread Tools Display Modes
HishamGamer
Junior Member
Join Date: Dec 2018
Location: find me if you can.
Old 02-22-2019 , 03:56   Re: Knife Models [XP System & Skills Support]
Reply With Quote #141

Sounds cool.
__________________
I am 68% addicted to Counterstrike. What about you?

The best and most beautiful things in the world cannot be seen or even touched - they must be felt with the heart.
-Helen Keller

Always do your best. What you plant now, you will harvest later.
-Og Mandino
HishamGamer is offline
LithuanianJack
Senior Member
Join Date: Nov 2013
Location: Vilnius, Lithuania
Old 04-01-2019 , 10:36   Re: Knife Models [XP System & Skills Support]
Reply With Quote #142

There is a problem. Server don't remember player's choice after reconnect when km_save_choice is 1.
LithuanianJack is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 04-01-2019 , 14:10   Re: Knife Models [XP System & Skills Support]
Reply With Quote #143

I fixed that problem already. Are you running the latest version of the plugin?
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
LithuanianJack
Senior Member
Join Date: Nov 2013
Location: Vilnius, Lithuania
Old 04-07-2019 , 02:30   Re: Knife Models [XP System & Skills Support]
Reply With Quote #144

Quote:
Originally Posted by OciXCrom View Post
I fixed that problem already. Are you running the latest version of the plugin?
Yes, but nothing changed.

Can you add function to set glowing for different teams - terrorist's ant ct's? Because players can't see the difference between players who looks the same color.

For example

GLOW_T = 153 0 255 40 19 1
GLOW_CT = 153 0 255 40 19 1
LithuanianJack is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 04-07-2019 , 07:15   Re: Knife Models [XP System & Skills Support]
Reply With Quote #145

To set a glow for each knife, you can use this - https://forums.alliedmods.net/showthread.php?t=314299
If you simply want a glow for the player that's not related with the chosen knife, then this is not really relevant to this plugin. You can use any other plugin for that.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
LithuanianJack
Senior Member
Join Date: Nov 2013
Location: Vilnius, Lithuania
Old 04-08-2019 , 01:14   Re: Knife Models [XP System & Skills Support]
Reply With Quote #146

Quote:
Originally Posted by OciXCrom View Post
To set a glow for each knife, you can use this - https://forums.alliedmods.net/showthread.php?t=314299
If you simply want a glow for the player that's not related with the chosen knife, then this is not really relevant to this plugin. You can use any other plugin for that.
If player A from Terrorists use skin BloodyKnife and player B from C-Terrorists uses the same knife, they will glow the same color. I want to set two different glowing colors for CT's ant T's

For example

GLOW_T = 153 0 255 40 19 1
GLOW_CT = 153 0 255 40 19 1
LithuanianJack is offline
DruGzOG
Veteran Member
Join Date: Nov 2007
Location: Unknown
Old 04-09-2019 , 10:35   Re: Knife Models [XP System & Skills Support]
Reply With Quote #147

PHP Code:
L 04/09/2019 07:34:19: [AMXXDisplaying debug trace (plugin "crx_knife_models.amxx"version "3.0")
L 04/09/2019 07:34:19: [AMXXRun time error 10native error (native "nvault_get")
L 04/09/2019 07:34:19: [AMXX]    [0crx_knife_models.sma::use_vault (line 698)
L 04/09/2019 07:34:19: [AMXX]    [1crx_knife_models.sma::client_connect (line 381
Having the same issue where the knives don't save as well.
__________________

Home of the AMX SUPER
Discord
DruGzOG is offline
Send a message via AIM to DruGzOG
Deszzz
Member
Join Date: Sep 2017
Old 04-28-2019 , 22:12   Re: Knife Models [XP System & Skills Support]
Reply With Quote #148

Wassup, hey Ocixcrom, just curious here. Is there a way to make like we are able to set a knife by both LEVEL/XP and FLAG at the same time?

Something that would stay like this:

[Butterfly Fade]
V_MODEL = models/v_knife_butterfly_fade.mdl
LEVEL = 14
FLAG = l
SHOW_RANK = 1

This way, if an admin is not Level 14, he still has access to a knife as part of his admin privilegies and the knife is also available for normal players upgrading their rank.
Deszzz is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 04-29-2019 , 13:59   Re: Knife Models [XP System & Skills Support]
Reply With Quote #149

Quote:
Originally Posted by Deszzz View Post
Wassup, hey Ocixcrom, just curious here. Is there a way to make like we are able to set a knife by both LEVEL/XP and FLAG at the same time?

Something that would stay like this:

[Butterfly Fade]
V_MODEL = models/v_knife_butterfly_fade.mdl
LEVEL = 14
FLAG = l
SHOW_RANK = 1

This way, if an admin is not Level 14, he still has access to a knife as part of his admin privilegies and the knife is also available for normal players upgrading their rank.
It's possible by modifying the plugin a bit. Locate the has_knife_access function on line 631 and change it like this:

PHP Code:
bool:has_knife_access(const id, const iKnife)
{
    static 
eKnife[Knives]
    
ArrayGetArray(g_aKnivesiKnifeeKnife)

    if(
eKnife[FLAG] != ADMIN_ALL)
    {
        return !!(
get_user_flags(id) & eKnife[FLAG])
    }

    if(
g_bRankSystem)
    {
        if(
eKnife[LEVEL] && crxranks_get_user_level(id) < eKnife[LEVEL])
        {
            return 
false
        
}

        if(
eKnife[XP] && crxranks_get_user_xp(id) < eKnife[XP])
        {
            return 
false
        
}
    }

    return 
true

Now when the knife has a flag set, the plugin will check if the player has the required flag and if he does, it will ignore the XP/level check and give him access directly.

I may add this in the main plugin in a future update.
__________________

Last edited by OciXCrom; 04-29-2019 at 14:00.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Deszzz
Member
Join Date: Sep 2017
Old 04-30-2019 , 13:31   Re: Knife Models [XP System & Skills Support]
Reply With Quote #150

Hey, thank you a lot! Works perfectly!

I really recommend you to add this editing to the main plugin, since you added the keyword "death" in the ranksystem, I created a math where ranks truly mirror player's level in the server. And now, with this editing you have made I can give admin all knives without using crxranks_give_xp and disturb the rank's purpose (in my case).

PS: Just in case you need a third feedback, the knives arent saving after disconnect indeed.

Last edited by Deszzz; 04-30-2019 at 13:32.
Deszzz 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:53.


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