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

Knife Models [XP System Support]


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



Knife Models


Description

  • A simple plugin that adds a menu from which you can choose your Knife skin. The menu can be accessed by typing /knife in the chat.


Cvars

  • km_open_at_spawn "0" -- whether the menu will be automatically opened on first spawn
  • km_save_choice "0" -- whether the selected knife will be saved via SteamID after leaving the server


Adding skins

  • The skins can be added in configs/KnifeModels.ini by following the example:

    PHP Code:
    [Skin Name]
    V_MODEL path to v_ model
    P_MODEL 
    path to p_ model 
  • If the skin doesn't have a p_ model, you can choose not to add the P_MODEL field.
  • You can also change the sounds and add a specific admin flag:

    PHP Code:
    [Skin Name]
    V_MODEL path to v_ model
    P_MODEL 
    path to p_ model
    FLAG 
    = if you want the knife to be for VIP users/adminsenter the flag here
    LEVEL 
    required level (requires OciXCrom's Rank System)
    SHOW_RANK = if set to 1, the rank name will be displayed instead of the level number (requires OciXCrom'
    s Rank System)
    XP required XP (requires OciXCrom's Rank System)
    DEPLOY_SOUND = sound when you deploy the knife
    HIT_SOUND = sound when you hit a player
    HITWALL_SOUND = sound when you hit a wall
    SLASH_SOUND = sound when you swing the knife
    STAB_SOUND = sound when you stab a player
    SELECT_SOUND = sound when selecting the knife from the menu 
  • Example:

    PHP Code:
    [My Cool Knife]
    V_MODEL models/v_coolknife.mdl
    P_MODEL 
    models/p_coolknife.mdl
    FLAG 
    b
    LEVEL 
    15
    SHOW_RANK 
    1
    XP 
    5000
    DEPLOY_SOUND 
    coolknife/deploy.wav
    HIT_SOUND 
    coolknife/hit.wav
    HITWALL_SOUND 
    coolknife/hitwall.wav
    SLASH_SOUND 
    coolknife/slash.wav
    STAB_SOUND 
    coolknife/stab.wav
    SELECT_SOUND 
    coolknife/select.wav 



__________________

Last edited by OciXCrom; 07-17-2018 at 10:05.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
JusTGo
Veteran Member
Join Date: Mar 2013
Location: tunisia
Old 02-05-2017 , 16: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 16:24.
JusTGo is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 02-05-2017 , 16: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 , 16: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 , 17: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 , 18: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 , 15: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 , 16:31   Re: Knfie Models
Reply With Quote #8

Knfie
__________________
Knife Bounty
CS Battle Royale (PUBG)
Contact/Ticket System

Private Plugins:
Tournament Organizer Plugin - 85% Done, paused.
Upcoming X-Mas Mod - 70% Done. PM to pre-order.
edon1337 is offline
Send a message via Skype™ to edon1337
Relaxing
Veteran Member
Join Date: Jun 2016
Location: Catlands
Old 02-06-2017 , 16: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 , 17: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 17: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 16:01.


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