AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Knife Models [XP System & Skills Support] (https://forums.alliedmods.net/showthread.php?t=293632)

OciXCrom 02-05-2017 13:03

Knife Models [XP System & Skills Support]
 

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)
  • km_admin_bypass -- if enabled and a knife has both FLAG and XP or LEVEL attributes set, the player will get access to that knife if he has the requried FLAG - the XP and LEVEL requirements will be ignored

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.
  • Here's an example knife with all attributes included:

    PHP Code:

    [Crom Knife]
    V_MODEL models/crom_knife/v_crom_knife.mdl
    P_MODEL 
    models/crom_knife/p_crom_knife.mdl
    FLAG 
    b
    DEPLOY_SOUND 
    crom_knife/knife_deploy1.wav
    HIT_SOUND 
    crom_knife/knife_hit1.wav
    HITWALL_SOUND 
    crom_knife/knife_hitwall1.wav
    SLASH_SOUND 
    crom_knife/knife_slash1.wav
    STAB_SOUND 
    crom_knife/knife_stab.wav
    SELECT_SOUND 
    crom_knife/knife_select.wav
    SELECT_MESSAGE 
    You have &x03selected &x01the knife &x04Crom Knife
    LEVEL 
    15
    SHOW_RANK 
    1
    XP 
    3000 


Skills/Abilities
  • There are no skills/abilities added in the main plugin. For that purpose, you need to download additional sub-plugins.
  • The sub-plugin that contains basic skills can be found here.
  • You can find other sub-plugins here.

Additional information and download link

https://raw.githubusercontent.com/Oc...using_this.png
https://raw.githubusercontent.com/Oc...plugin_lab.png
https://raw.githubusercontent.com/Oc...ad_default.png

JusTGo 02-05-2017 15:23

Re: Knfie Models
 
i have feeling that your next plugin is ak47 models xD.

OciXCrom 02-05-2017 15:26

Re: Knfie Models
 
If someone decides to make an ak47_maps only server, no problem. :bee:

yas17sin 02-05-2017 15:30

Re: Knfie Models
 
and what about de_dust2 only server :3 .

OciXCrom 02-05-2017 16:07

Re: Knfie Models
 
Well, there aren't any de_dust2 models for players to change, are there?

yas17sin 02-05-2017 17:03

Re: Knfie Models
 
nope but who know maybe someone come with a good idea for servers like this.

brlight 02-06-2017 14:57

Re: Knfie Models
 
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

edon1337 02-06-2017 15:31

Re: Knfie Models
 
Knfie

OciXCrom 02-06-2017 16:12

Re: Knfie Models
 
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.

brlight 02-08-2017 12:53

Re: Knife Models
 
Just mentioned cause that way you can organize things better, and you donīt have to choose through 20 or more knifes
Example:

Karambit Skins
- Doppler
- Fade-etc

Butterfly skins
- Crimson web
- Fade
- etc

In my opinion would be much better, but if you think is not worth it, thatīs up to you.

FR0NTLINE 02-21-2017 11:21

Re: Knife Models
 
Wow

brlight 02-21-2017 13:19

Re: Knife Models
 
Quote:

Originally Posted by FR0NTLINE (Post 2497199)
Wow

?

EFFx 02-21-2017 13:29

Re: Knife Models
 
He's impressed.

FR0NTLINE 02-21-2017 14:42

Re: Knife Models
 
https://forums.alliedmods.net/showthread.php?t=292977 , original Idea. check the date. then follow the copiers.

OciXCrom 02-21-2017 15:16

Re: Knife Models
 
Lol, that's an original idea? Cool story, bro.
First of all, this has nothing to do with submodels.
Second, a plugin like this exists in many servers, including mine, and I just decided to make one public release.
Third, check my date - http://i.imgur.com/pdu1AXs.jpg - it has been chilling in my scripting folder for a long time.
Your "original idea" is 1 year too late. :nono:

FR0NTLINE 02-21-2017 15:30

Re: Knife Models
 
yes all of your posts in my post were from last month on this same exact topic. you started a new thread and made what i was talking about 2 weeks or so later. Cmon man keep it real. Or don't I don't care lol.

FR0NTLINE 02-21-2017 15:33

Re: Knife Models
 
All of the sudden. https://forums.alliedmods.net/showthread.php?t=293454

FR0NTLINE 02-21-2017 15:34

Re: Knife Models
 
If you need any ideas inbox me I'll sell you some. I also have private plugins your making from 10 years ago.

OciXCrom 02-21-2017 17:24

Re: Knife Models
 
Dude, get real. I gave you clear evidence that the plugin was made BEFORE you posted your topic, so I probably didn't travel in the future to steal your idea which isn't even related to the plugin. I'm not planing to argue with you on this. I post in 100 different topic each day and believe me - I don't even remember your topic. I have entire private mods made from scratch, so I don't need stealing someone else's ideas. Get real.

FR0NTLINE 02-21-2017 17:30

Re: Knife Models
 
ok macadamian, you just have the most amazing timing in the world to release something i just posted. Your lucky to be able to post in 100
different topic each day lol. Alot of us have jobs and wifes and kids. But you, you get to post a 100 topic each day! ahahha GET REAL!!!!

OciXCrom 02-21-2017 19:16

Re: Knife Models
 
I feel your pain.

FR0NTLINE 02-21-2017 19:49

Re: Knife Models
 
Quote:

Originally Posted by OciXCrom (Post 2497333)
I feel your pain.

before i put it in or after?

OciXCrom 02-21-2017 20:05

Re: Knife Models
 
Good one. Your wife and kids should be proud.

FR0NTLINE 02-21-2017 20:17

Re: Knife Models
 
1 daughter UCLA grad. Celebrity Dad. TMI. HAHAHAHA

EFFx 02-21-2017 22:57

Re: Knife Models
 
Calm down ladies.

FR0NTLINE 02-22-2017 11:54

Re: Knife Models
 
Quote:

Originally Posted by EFFx (Post 2497364)
Calm down ladies.

BUMP^^^^^^^^^^^^^^^^^LOL^^^^^^^^^^^^^^^^^^^

Visinescu 03-07-2017 21:51

Re: Knife Models
 
Romanian

[ro]
KM_CHAT_PREFIX = !g[Modele cutit]!n
KM_CHAT_ALREADY = Acest cutit este deja selectat!
KM_CHAT_SELECTED = Ai ales cutitul !g%s
KM_MENU_TITLE = \y< \rAlegeti modelul de cutit \y>
KM_MENU_TITLE_PAGE = ^n\r-- \yPagina:\r
KM_MENU_SELECTED = \y~ \rSELECTAT \y~
KM_MENU_VIP_ONLY = \y~ \rVIP \y~

EDIT:http://i.imgur.com/ommjrff.png

fmt is inside include soo.....

Visinescu 03-08-2017 11:36

Re: Knife Models
 
Bump and don't care, just help me out.

OciXCrom 03-08-2017 13:46

Re: Knife Models
 
Well, you should care. In 4:00 I was probably sleeping and until now I was in college + sleeping again after that, so bumping won't wake me up earlier. I uploaded version 1.3a - use that one. Thanks for the translation.

Visinescu 03-09-2017 06:11

Re: Knife Models
 
Quote:

Originally Posted by OciXCrom (Post 2501869)
Well, you should care. In 4:00 I was probably sleeping and until now I was in college + sleeping again after that, so bumping won't wake me up earlier. I uploaded version 1.3a - use that one. Thanks for the translation.

Wasn't trying to get your attention specifically , i was just hoping someone who knows how to scripts would come to my rescue :oops: .

mrdrug11 03-19-2017 10:55

Re: Knife Models
 
Sorry i might sound like an idiot but i am very new to server hosting, i imported this into my serer but when i type /knife , nothing comes up. Is their something i need to do like code before it is use able ?

OciXCrom 03-19-2017 15:00

Re: Knife Models
 
I'm assuming you didn't add any models in KnifeModels.ini.

mrdrug11 03-20-2017 18:09

Re: Knife Models
 
Quote:

Originally Posted by OciXCrom (Post 2504875)
I'm assuming you didn't add any models in KnifeModels.ini.

Im gonna sound like an idiot but i don't know how too ....

OciXCrom 03-20-2017 19:49

Re: Knife Models
 
Well I'm not going to explain stuff like an idiot, so read the first post. Everything's explained there.

Natsheh 03-25-2017 20:54

Re: Knife Models
 
Just knife models what about the knife sounds..

OciXCrom 03-26-2017 08:25

Re: Knife Models
 
Hmm... Good idea.

OciXCrom 03-26-2017 09:54

Re: Knife Models
 
Update v2.0 @ 26.03.2017

  • You can now change the sounds for every knife.
  • Completely changed the way models are added in the configuration file.

kristi 04-02-2017 09:49

Re: Knife Models
 
Which file should I download ?

Suggestion:
Add death sound when you kill someone with specific model.

OciXCrom 04-02-2017 10:59

Re: Knife Models
 
The latest version, of course. I'll have your suggestion in mind for the next update.

FreezerPT 04-06-2017 06:16

Re: Knfie Models
 
Quote:

Originally Posted by OciXCrom (Post 2493451)
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.

Hello, I put this plugin on my server and a lot of people liked it, but they want it too for ak and m4, so you could not do it in 1 plugin, to change ak m4 and knife?


All times are GMT -4. The time now is 10:39.

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