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

basic knife skills


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
The RaiD.
Member
Join Date: Jul 2019
Old 09-25-2020 , 11:42   basic knife skills
Reply With Quote #1

https://forums.alliedmods.net/showthread.php?t=314299
Can Someone add here ? more xp? example if someone reached level 4 with a new knife it gives more xp on kill with this knife? just a bonus xp ?

Last edited by The RaiD.; 09-25-2020 at 11:42.
The RaiD. is offline
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 09-25-2020 , 14:54   Re: basic knife skills
Reply With Quote #2

Quote:
Originally Posted by The RaiD. View Post
https://forums.alliedmods.net/showthread.php?t=314299
Can Someone add here ? more xp? example if someone reached level 4 with a new knife it gives more xp on kill with this knife? just a bonus xp ?
Use my rank system I already did that
__________________
Youtube.com/Supremache

Bank System [Nvault - SQL Support]
VIP System
  • If you think it's that simple, then do it yourself.
Supremache is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 09-26-2020 , 07:36   Re: basic knife skills
Reply With Quote #3

No, you didn't. Your rank system has nothing more than mine and this is not what he is requesting.
He wants a knife skill that gives more XP. Your plugin doesn't even support knife skills.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 09-26-2020 , 12:55   Re: basic knife skills
Reply With Quote #4

I dont understand, I think he want knife exp bonus and i have that option in my plugin!!
- "knife_xp", "10" // Knife EXP bonus + Normal EXP bonus
__________________
Youtube.com/Supremache

Bank System [Nvault - SQL Support]
VIP System
  • If you think it's that simple, then do it yourself.
Supremache is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 09-26-2020 , 14:50   Re: basic knife skills
Reply With Quote #5

No, he wants to get more XP when killing a player with a specific knife skin.
The thing you mentioned above is already a part of my plugin, so I don't see why you mentioned your alternative.
If he switches to your plugin, he won't even have access to the entire knife system.

Try this:

PHP Code:
#include <amxmodx>
#include <crxknives>
#include <crxranks>

#define PLUGIN_VERSION "1.0"

#if !defined MAX_PLAYERS
const MAX_PLAYERS 32
#endif

new const ATTRIBUTE_BONUS_XP[] = "BONUS_XP"

new g_iBonusXP[MAX_PLAYERS 1],
    
bool:g_bKnifeOnlySkills

public plugin_init()
{
    
register_plugin("CRXKnives: Bonus XP"PLUGIN_VERSION"OciXCrom")
    
register_cvar("CRXKnivesBonusXP"PLUGIN_VERSIONFCVAR_SERVER|FCVAR_SPONLY|FCVAR_UNLOGGED)
    
register_event("DeathMsg""OnPlayerKilled""a""4=knife")
}

public 
OnPlayerKilled()
{
    new 
iAttacker read_data(1), iVictim read_data(2)

    if(
is_user_connected(iAttacker) && iAttacker != iVictim && g_iBonusXP[iAttacker] && can_use_skill(iAttacker))
    {
        
crxranks_give_user_xp(iAttacker_g_iBonusXP[iAttacker], CRXRANKS_XPS_REWARD)
    }
}

public 
plugin_cfg()
{
    
g_bKnifeOnlySkills get_cvar_num("km_knife_only_skills") != 0
}

public 
crxknives_knife_updated(idiKnifebool:bOnConnect)
{
    if(
bOnConnect)
    {
        
g_iBonusXP[id] = 0
    
}

    
crxknives_get_attribute_int(idATTRIBUTE_BONUS_XPg_iBonusXP[id])
}

bool:can_use_skill(id)
{
    return !
g_bKnifeOnlySkills || (get_user_weapon(id) == CSW_KNIFE)

You add the bonus XP amount like this:

PHP Code:
[Your Knife]
BONUS_XP 
__________________

Last edited by OciXCrom; 09-26-2020 at 14:58.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
The RaiD.
Member
Join Date: Jul 2019
Old 10-03-2020 , 12:34   Re: basic knife skills
Reply With Quote #6

hmm still same default xp without bonus
The RaiD. is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 10-04-2020 , 08:14   Re: basic knife skills
Reply With Quote #7

Check the total amount you get, not the HUD message that pops up. Since the XP is given at the same time, the HUD won't display the sum amount.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
The RaiD.
Member
Join Date: Jul 2019
Old 10-04-2020 , 11:19   Re: basic knife skills
Reply With Quote #8

nop its not working still default xp
The RaiD. is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 10-04-2020 , 17:19   Re: basic knife skills
Reply With Quote #9

Did you configure it?
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
The RaiD.
Member
Join Date: Jul 2019
Old 10-05-2020 , 04:32   Re: basic knife skills
Reply With Quote #10

yes i wrote on Knifemodels.ini
knife name
BONUS_XP = 5
and added this plugin too
The RaiD. 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:19.


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