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

[CSGO] CMDWeapons - Commands for weapons, items, hp, onetap etc. (v1.0 24/05/2020)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Kashinoda
Member
Join Date: Dec 2017
Plugin ID:
7125
Plugin Version:
1.0
Plugin Category:
Fun Stuff
Plugin Game:
Counter-Strike: GO
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Old 05-24-2020 , 14:46   [CSGO] CMDWeapons - Commands for weapons, items, hp, onetap etc. (v1.0 24/05/2020)
    Reply With Quote #1

    This is a simple plugin I made for our clan server which allows you to type certain commands which set spawn items, weapons, hp and more. Save functionality included.

    I don't profess to being great with SourcePawn so the code could no doubt be improved. This mod is mainly for admins of small servers having a bit of fun.

    If no team is specified the command applies to both teams.

    Weapon and Item Commands
    Quote:
    !wp {weapon_shortcode} {ct/t/all} // Set weapon - !wp p250
    !item {item_shortcode} {amount} {ct/t/all} // Set item(s) - !item snowball 10
    !onetap {on/off} {ct/t/all} // Enable one-tap mode (clip capacity 1) - !onetap on ct
    !hp {amount} {ct/t/all} // Set player HP - !hp 35
    Shortcodes
    Quote:
    Weapons - randomall, randomeach, awp, scout, ak, m4, m4s, sg, aug, deag, usp, glock, galil, famas, mac10, mp9, mp7, ump, bizon, p90, mp5, m249, mag7, negev, nova, shorty, xm, 57, dualies, p250, tec9, cz, r8, p2000
    Items: - grenade, smoke, flash, decoy, charge, mine, tag, snowball, shield, defuser
    Random Weapons:
    Quote:
    !wp randomall {ct/t/all} // Everyone spawns with the same random weapon
    !wp randomeach {ct/t/all} // Everyone spawns with a different random weapon
    Misc commands:
    Quote:
    !flip // Switch settings for both sides
    !clear // Clear all settings
    !rr // Restart Round
    Save your settings:
    Quote:
    !save {save_name} // Save all current settings
    !load {save_name} // Load existing settings
    !delete {save_name} // Delete an existing slot
    !update {save_name} // Update an existing slot
    Custom Settings:

    Save your own console commands and execute them at any time, you must remember to wrap the commands in quotation marks, i.e:
    !rcon_save bunnyhop "sv_enablebunnyhopping 1; sv_autobunnyhopping 1; sv_staminamax 0; sv_staminajumpcost 0; sv_staminalandcost 0"

    If your commands are too long for the chat box, enter it via the console instead omitting the !, i.e:
    rcon_save bunnyhop "sv_enablebunnyhopping 1; sv_autobunnyhopping 1; sv_staminamax 0; sv_staminajumpcost 0; sv_staminalandcost 0""

    Quote:
    !rcon_save {save_name} {console commands} // Save custom console commands
    !rcon_load {save_name} // Load and execute custom console commands
    !rcon_delete {save_name} // Delete an existing slot
    !rcon_update {save_name} {console commands} // Update an existing slot
    Attached Files
    File Type: sp Get Plugin or Get Source (cmdWeapons.sp - 170 views - 42.9 KB)
    File Type: smx cmdWeapons.smx (30.1 KB, 191 views)
    __________________

    Last edited by Kashinoda; 05-25-2020 at 19:09.
    Kashinoda is offline
    ocean6
    Junior Member
    Join Date: Mar 2019
    Old 06-08-2020 , 03:55   Re: [CSGO] CMDWeapons - Commands for weapons, items, hp, onetap etc. (v1.0 24/05/2020
    Reply With Quote #2

    Could you update to allow for Kevlar, Helmet, C4, Zeus?
    ocean6 is offline
    Kashinoda
    Member
    Join Date: Dec 2017
    Old 06-15-2020 , 18:55   Re: [CSGO] CMDWeapons - Commands for weapons, items, hp, onetap etc. (v1.0 24/05/2020
    Reply With Quote #3

    Quote:
    Originally Posted by ocean6 View Post
    Could you update to allow for Kevlar, Helmet, C4, Zeus?
    Kevlar and helmet are usually set when !wp is called, do you want this to be independent?

    C4 is already in the mod, assuming you mean breach charge:
    !item charge
    __________________
    Kashinoda 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 08:44.


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