Raised This Month: $51 Target: $400
 12% 

Hosties CT-Guns


Post New Thread Reply   
 
Thread Tools Display Modes
Author
OSWO
Senior Member
Join Date: Jul 2015
Location: United Kingdom, London
Plugin ID:
4965
Plugin Version:
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Allows customisation of spawn load outs when playing CT on Hosties
    Old 12-23-2015 , 03:36   Hosties CT-Guns
    Reply With Quote #1

    Hey, all!

    This is currently my first public plugin submission to AlliedModders, and hope for it not to be my last. I started quite recently.

    I've been looking into other's works, how they function and seeing if I could replicate without the need of looking how they did it.

    Here's something I released publicly to all, and I would love and appreciate any feedback!

    Title:
    CT-Guns

    Description:
    Allows customisation of spawn load outs when playing CT on Hosties.

    Commands:
    sm_ctguns - Shows the Menu to the client, allowing them to choose their preferred guns.

    Plugin Info:
    Players can use the command at any time. If they're dead, it'll change their loadout, if they're alive, it'll change their loadout and give them the weapons they selected. Players can only use the command once per round when alive, but unlimited times when dead to prevent unnecessary entity spawning.
    Every time they re-spawn, the same load out will be equipped on their inventory.

    Change log:
    Code:
    v1.40
    Added requested features by TheDiamant953.
    -No longer has a 30 second time-out.
    -Gives weapons if user is alive and used command.
    
    v1.41
    -Players can only use the command once when they're alive. Prevent from spawning an unnecessary amount of entities.
    -Players can change their load out as much as they want when dead.
    -Redid Messages.
    
    v1.42
    -Fixed a enum issue.
    
    v1.50 - Commits from: oaaron99
    -Removed enums
    -Cleaner code
    
    v1.51
    -Fixed "weapon_galil" to "weapon_galilar"
    I may plan to feature "Translations" and offer a wider range of customisability, but for now, the SourceCode is free for you to edit Enjoy!

    Download:
    https://github.com/HardcorePark/CTGuns

    Last edited by OSWO; 01-08-2016 at 16:20.
    OSWO is offline
    TheDiamant953
    Member
    Join Date: Jan 2013
    Old 12-26-2015 , 21:22   Re: Hosties CT-Guns
    Reply With Quote #2

    Very good looking plugin.

    Can you maybe make a version who have the command !ctguns already activated (not the first 30secondes) and the chosens weapons are given every round start but not on the chose moment.

    (For exemple i chose M4, the plugin don't give me an M4 now but on the next round start, and same thing every next rounds).

    That can be cool for choose weapon when we are dead, or alive, for all nexts rounds. Like a "armory".

    Last edited by TheDiamant953; 12-26-2015 at 21:29.
    TheDiamant953 is offline
    OSWO
    Senior Member
    Join Date: Jul 2015
    Location: United Kingdom, London
    Old 12-31-2015 , 05:38   Re: Hosties CT-Guns
    Reply With Quote #3

    Quote:
    Originally Posted by TheDiamant953 View Post
    Very good looking plugin.

    Can you maybe make a version who have the command !ctguns already activated (not the first 30secondes) and the chosens weapons are given every round start but not on the chose moment.

    (For exemple i chose M4, the plugin don't give me an M4 now but on the next round start, and same thing every next rounds).

    That can be cool for choose weapon when we are dead, or alive, for all nexts rounds. Like a "armory".
    I've taken your request and added the features in v1.40. Feel free to download it from GitHub.
    OSWO is offline
    OSWO
    Senior Member
    Join Date: Jul 2015
    Location: United Kingdom, London
    Old 01-01-2016 , 13:43   Re: Hosties CT-Guns
    Reply With Quote #4

    Updated to v1.50.
    Code:
    v1.50 - Commits from: oaaron99
    -Removed enums
    -Cleaner code

    Last edited by OSWO; 01-01-2016 at 13:43.
    OSWO is offline
    Addicted.
    AlliedModders Donor
    Join Date: Dec 2013
    Location: 0xA9D0DC
    Old 01-07-2016 , 19:39   Re: Hosties CT-Guns
    Reply With Quote #5

    This:
    PHP Code:
    char g_Rifles[][WEAPONARRAYSIZE] = {"ak47""aug""famas""galil""sg553""m4a1""m4a4"}; 
    Should be changed to:
    PHP Code:
    char g_Rifles[][WEAPONARRAYSIZE] = {"ak47""aug""famas""galilar""sg553""m4a1""m4a4"}; 
    weapon_galil is not valid in csgo and causes crashes

    Last edited by Addicted.; 01-07-2016 at 19:40.
    Addicted. is offline
    OSWO
    Senior Member
    Join Date: Jul 2015
    Location: United Kingdom, London
    Old 01-08-2016 , 16:19   Re: Hosties CT-Guns
    Reply With Quote #6

    Code:
    v1.51
    -Fixed "weapon_galil" to "weapon_galilar"
    OSWO is offline
    Reply



    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 05:57.


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