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

[CS:S/CS:GO] Grenades On Spawn


Post New Thread Reply   
 
Thread Tools Display Modes
Author
tair
Junior Member
Join Date: Apr 2015
Location: OnGameFrame()
Plugin ID:
4600
Plugin Version:
1.0
Plugin Category:
All
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    gives grenades when player spawn.
    Old 04-13-2015 , 15:11   [CS:S/CS:GO] Grenades On Spawn
    Reply With Quote #1

    Grenades On Spawn

    Description:

    This is a simple plugin , gives grenades when player spawn.

    Cvars:

    sm_gs_enabled 1|0 (def - 1)
    sm_gs_molotov - Enable it if running the plugin on CS:GO (def - 1)
    sm_gs_version - Plugin version
    sm_gs_hegrenade - Enable\Disable HeGrenade
    sm_gs_flashbang - Enable\Disable Flashband Grenade
    sm_gs_smoke - Enable\Disable Smoke Grenade

    *Note :
    If you running the plugin on the plugin on CS:GO
    and want a molotov on spawn use Cvar :
    sm_gs_molotov "1"

    Installation:
    Drop gospawn.smx in addons/sourcemod/plugins/

    Changelog

    Version 1.0 -Public release

    Version 1.1 - Added Cvars :

    -Added Cvar sm_gs_hegrenade
    -Added Cvar sm_gs_flashbang
    -Added Cvar sm_gs_smoke

    Todo list:

    All Done.
    Attached Files
    File Type: sp Get Plugin or Get Source (gospawn.sp - 1429 views - 3.0 KB)
    File Type: smx gospawn.smx (3.6 KB, 427 views)

    Last edited by tair; 04-14-2015 at 13:27. Reason: *Fix New Version
    tair is offline
    DabuDos
    Junior Member
    Join Date: Feb 2015
    Location: Germany
    Old 04-14-2015 , 03:00   Re: [CS:S/CS:GO] Grenades On Spawn
    Reply With Quote #2

    Good Idea, but I could give a few suggestions:

    Quote:
    Originally Posted by tair View Post
    sm_gs_molotov - Enable it if running the plugin on CS:GO (def - 1)
    You can do a little workaround by detecting the used gamefolder and enable/disable it then.
    Also "GivePlayerItem(client, "weapon_flashbang");" try to get the value how many flashbangs are allowed on the server(csgo only, I dont know that CVar right now) and give the amount then.

    And maybe add cvars wich grenades should be given.

    These are just suggestions, you don't need to do it^^

    Last edited by DabuDos; 04-14-2015 at 03:00.
    DabuDos is offline
    tair
    Junior Member
    Join Date: Apr 2015
    Location: OnGameFrame()
    Old 04-14-2015 , 13:01   Re: [CS:S/CS:GO] Grenades On Spawn
    Reply With Quote #3

    Quote:
    Originally Posted by DabuDos View Post
    Good Idea, but I could give a few suggestions:


    You can do a little workaround by detecting the used gamefolder and enable/disable it then.
    Also "GivePlayerItem(client, "weapon_flashbang");" try to get the value how many flashbangs are allowed on the server(csgo only, I dont know that CVar right now) and give the amount then.

    And maybe add cvars wich grenades should be given.

    These are just suggestions, you don't need to do it^^
    Nice ! i will add this on the next version
    tair is offline
    qiuhaian
    Senior Member
    Join Date: Nov 2009
    Old 04-18-2015 , 01:05   Re: [CS:S/CS:GO] Grenades On Spawn
    Reply With Quote #4

    PHP Code:
     if(GetClientTeam(client) == CS_TEAM_T)
     {
      
    GivePlayerItem(client"weapon_molotov");
     }
     if(
    GetClientTeam(client) == CS_TEAM_CT)
     {
      
    GivePlayerItem(client"weapon_incgrenade");
     } 
    qiuhaian is offline
    Spy1337
    Member
    Join Date: Aug 2011
    Old 02-02-2016 , 15:15   Re: [CS:S/CS:GO] Grenades On Spawn
    Reply With Quote #5

    can some change this to "o" flags only?
    __________________
    Spy1337 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 12:44.


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