Ads keep us online. Without them, we wouldn't exist. We don't have paywalls or sell mods - we never will. But every month we have large bills and running ads is our only way to cover them. Please consider unblocking us. Thank you from GameBanana <3

Knife Models [XP System & Skills Support] - A Mod for Counter-Strike 1.6.

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.




? 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 

? Additional information and download link





1-10 of 12
1
Pages
  • 1
  • 2
Go to page:
  • OciXCrom avatar
    OciXCrom username pic Joined 11y ago
    Offline
    3,300 points Ranked 4,039th
    23 medals 4 rare
    • Submitted 20 Gamefiles Medal icon
    • 6 years a member Medal icon
    • Submitted 15 Mods Medal icon
    • Submitted 20 Mods Medal icon
    • Gamefiler of the Month, July 2012 Medal icon
    • Gamefiler of the Month, August 2012 Medal icon
    5y
    Did you compile it with an online compiler or locally? If it's the first one, there's your problem. Don't compile plugins online, use the built-in compiler you have in your server's folder.
    YouTube.com/OciXCrom
    URL to post:
  • andre19 avatar
    andre19 Joined 6y ago
    Offline
    5y
    Guy give me this error in compiling

    crx_knife_models.sma(4) : fatal error 100: cannot read from file: "formatin"Compilation aborted.1 Error.Could not locate output file crx_knife_models.amx (compile failed).
    Bananite
    URL to post:
  • OciXCrom avatar
    OciXCrom username pic Joined 11y ago
    Offline
    3,300 points Ranked 4,039th
    23 medals 4 rare
    • Submitted 20 Gamefiles Medal icon
    • 6 years a member Medal icon
    • Submitted 15 Mods Medal icon
    • Submitted 20 Mods Medal icon
    • Gamefiler of the Month, July 2012 Medal icon
    • Gamefiler of the Month, August 2012 Medal icon
    5y
    Posted by andre19

    Creator please give me crx_knife_models.amxx
    Please man! <3
    I love your job
    Compile the .sma file in order to get .amxx. Ask Google if you don't know how. Posting .amxx plugins is a bad idea due to many reasons. I don't know if it's allowed here, but it shouldn't.
    YouTube.com/OciXCrom
    URL to post:
  • andre19 avatar
    andre19 Joined 6y ago
    Offline
    6y
    Creator please give me crx_knife_models.amxx
    Please man! <3
    I love your job
    Bananite
    URL to post:
  • OciXCrom avatar
    OciXCrom username pic Joined 11y ago
    Offline
    3,300 points Ranked 4,039th
    23 medals 4 rare
    • Submitted 20 Gamefiles Medal icon
    • 6 years a member Medal icon
    • Submitted 15 Mods Medal icon
    • Submitted 20 Mods Medal icon
    • Gamefiler of the Month, July 2012 Medal icon
    • Gamefiler of the Month, August 2012 Medal icon
    6y
    Posted by Rj.

    It's just like similar with my CS:GO Knives Menu.

    Sorry if it's the same, I haven't seen your plugin before. This one doesn't have any built-in knives.
    • Funny x 1
    • Agree x 1
    • Thanks x 1
    • You rock x 1
    YouTube.com/OciXCrom
    URL to post:
  • Ghost1495111 avatar
    Ghost1495111 Joined 6y ago
    inactive
    -112 points Ranked 2,023rd
    42 medals 4 legendary 12 rare
    • Submitted 15 Tools Medal icon
    • Submitted 50 Gamefiles Medal icon
    • 15+ Entries! GameBanana’s Christmas Giveaway 2016 Medal icon
    • Thanked 500 submitters Medal icon
    • 2nd Place - Game Poetry Contest Medal icon
    • Submitted 5 Tools Medal icon
    6y
    It's just like similar with my CS:GO Knives Menu.
    URL to post:
  • OciXCrom avatar
    OciXCrom username pic Joined 11y ago
    Offline
    3,300 points Ranked 4,039th
    23 medals 4 rare
    • Submitted 20 Gamefiles Medal icon
    • 6 years a member Medal icon
    • Submitted 15 Mods Medal icon
    • Submitted 20 Mods Medal icon
    • Gamefiler of the Month, July 2012 Medal icon
    • Gamefiler of the Month, August 2012 Medal icon
    6y
    Dude, is this your first time using an AMXX plugin?! "b" is an admin flag - ever heard of them? Ask Google if you didn't. If you're an admin, you have admin flags and "b" is one of them. I shouldn't even be explaining this. This is basic AMXX stuff.
    YouTube.com/OciXCrom
    URL to post:
  • rockz27 avatar
    rockz27 Joined 7y ago
    Offline
    1,082 points Ranked 29,393rd
    6y

    @OciXCrom:

    I understand what you have written in description. However, what i wanted to know was; what other values can be written in "flag" field ?

    Only "b" or are there any other values that can be given as input ? and also what do each value represent ? like here "b" means admins only right ?

    I tried looking amxx manuals, don't seem to have a clear understanding of flag values..
    Bananite
    URL to post:
  • OciXCrom avatar
    OciXCrom username pic Joined 11y ago
    Offline
    3,300 points Ranked 4,039th
    23 medals 4 rare
    • Submitted 20 Gamefiles Medal icon
    • 6 years a member Medal icon
    • Submitted 15 Mods Medal icon
    • Submitted 20 Mods Medal icon
    • Gamefiler of the Month, July 2012 Medal icon
    • Gamefiler of the Month, August 2012 Medal icon
    6y
    @FrozeNN - Thanks. I added it.

    @rockz27 - An admin flag, of course. It's explained perfectly well:

    The "flag" field can be left empty if you want the skin to be available for all players, otherwise type in the VIP flag.

    If you want a skin for all players:

    "Cool skin" "v_skin.mdl" "p_skin.mdl"

    If you want it for players with flag "b":

    "Cool skin" "v_skin.mdl" "p_skin.mdl" "b"

    It's very simple.

    @IXShadowXI - You gave me no information. Maybe you didn't install the plugin properly, so check your console for error logs and see if it's working with the amx_plugins commands. If it is, then you have a plugin that blocks chat commands, and that plugin should be put last in plugins.ini.
    YouTube.com/OciXCrom
    URL to post:
  • xenonkz avatar
    xenonkz Joined 6y ago
    Offline
    1,091 points Ranked 29,260th
    6y
    I said in the chat "/knife" and in the console "km_open_at_spawn "0" " and it didn't work .
    过你的生活
    URL to post: