Raised This Month: $120 Target: $400
 30% 

Knife Models [XP System & Skills Support]


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   General Purpose        Approver:   HamletEagle (31)
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 02-05-2017 , 13:03   Knife Models [XP System & Skills Support]
Reply With Quote #1




Description
  • This plugin adds a menu from where you can choose different knife skins. It also has an API which allows to create sub-plugins, such as knife skills/abilities.

Commands
  • /knife -- opens the knife menu
  • crxknives_select <knife id> -- attempts to select the given knife

Cvars
  • km_open_at_spawn -- if enabled, the knife menu will open at spawn if the player hasn't yet chosen a knife (the menu won't open for players that don't have access for any knife according to their admin flags)
  • km_save_choice -- if enabled, the selected knife will be remembered via SteamID after you leave the server
  • km_only_dead -- if enabled, players won't be able to change their knife while they're alive
  • km_select_message -- whether or not to display a chat message with the knife name when a knife is selected
  • km_knife_only_skills -- this cvar has no effect in the plugin itself, its purpose is to be used from sub-plugins in order to determine whether the knife skills will be active only when the player holds a knife (1) or with any weapon (0)

Adding knives
  • The knives can be added in the file configs/KnifeModels.ini by putting the knife name on a new line in square brackets, for example [Cool Knife].
  • Below this line you can add the knife attributes. The following attributes are available in the main plugin:
    • V_MODEL -- path to the v_ model
    • P_MODEL -- path to the p_ model
    • FLAG -- admin access flag
    • DEPLOY_SOUND -- sound when you deployy the knife
    • HIT_SOUND -- sound when you hit a player with the knife
    • HITWALL_SOUND -- sound when you hit a wall with the knife
    • SLASH_SOUND -- sound when you swing the knife
    • STAB_SOUND -- sound when you stab a player with the knife
    • SELECT_SOUND -- sound when selecting the knife
    • SELECT_MESSAGE -- chat message when selecting the knife (you can add this attribute multiple times if you want to show more than one message)
    • LEVEL -- required level (requires OciXCrom's Rank System)
    • SHOW_RANK -- if set to 1, it will show the rank name instead of the level number (requires OciXCrom's Rank System)
    • XP -- required XP (requires OciXCrom's Rank System)
  • Bear in mind that all attributes are optional.

Additional information and download link



__________________

Last edited by OciXCrom; 02-15-2019 at 15:18.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
JusTGo
Veteran Member
Join Date: Mar 2013
Location: tunisia
Old 02-05-2017 , 15:23   Re: Knfie Models
Reply With Quote #2

i have feeling that your next plugin is ak47 models xD.
__________________

Last edited by JusTGo; 02-05-2017 at 15:24.
JusTGo is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 02-05-2017 , 15:26   Re: Knfie Models
Reply With Quote #3

If someone decides to make an ak47_maps only server, no problem.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
yas17sin
Veteran Member
Join Date: Oct 2016
Location: Morocco/Sale
Old 02-05-2017 , 15:30   Re: Knfie Models
Reply With Quote #4

and what about de_dust2 only server .
yas17sin is offline
Send a message via ICQ to yas17sin
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 02-05-2017 , 16:07   Re: Knfie Models
Reply With Quote #5

Well, there aren't any de_dust2 models for players to change, are there?
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
yas17sin
Veteran Member
Join Date: Oct 2016
Location: Morocco/Sale
Old 02-05-2017 , 17:03   Re: Knfie Models
Reply With Quote #6

nope but who know maybe someone come with a good idea for servers like this.
yas17sin is offline
Send a message via ICQ to yas17sin
brlight
Senior Member
Join Date: Jun 2011
Old 02-06-2017 , 14:57   Re: Knfie Models
Reply With Quote #7

Thanks for sharing!
It would be really nice if you could add something like submenus, for instance:

Knife Type a
Knife Type b
Knife Type c

Then inside each knife type the possibility to add the knifes models, like:
Knife Type a
- Model A
- Model B
Knife Type b
-Model A
- Model B
Knife Type c
- Model A
- Model B
brlight is offline
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Traphouse
Old 02-06-2017 , 15:31   Re: Knfie Models
Reply With Quote #8

Knfie
__________________
edon1337 is online now
Send a message via Skype™ to edon1337
Relaxing
Veteran Member
Join Date: Jun 2016
Location: Catlands
Old 02-06-2017 , 15:51   Re: Knfie Models
Reply With Quote #9

Quote:
Originally Posted by brlight View Post
Thanks for sharing!
It would be really nice if you could add something like submenus, for instance:

Knife Type a
Knife Type b
Knife Type c

Then inside each knife type the possibility to add the knifes models, like:
Knife Type a
- Model A
- Model B
Knife Type b
-Model A
- Model B
Knife Type c
- Model A
- Model B
It's called SubMenu, definitely organized and e-t-u.
__________________
Have A Relaxing Day | Wiki
aim_relaxing
Relaxing is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 02-06-2017 , 16:12   Re: Knfie Models
Reply With Quote #10

What would be the thing that makes the knives different in each category? I really don't feel like doing that, especially if there's no good reason.
__________________

Last edited by OciXCrom; 02-06-2017 at 16:12.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
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 13:48.


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