AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [CS:S/CS:GO] Grenades On Spawn (https://forums.alliedmods.net/showthread.php?t=261477)

tair 04-13-2015 15:11

[CS:S/CS:GO] Grenades On Spawn
 
2 Attachment(s)
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.

DabuDos 04-14-2015 03:00

Re: [CS:S/CS:GO] Grenades On Spawn
 
Good Idea, but I could give a few suggestions:

Quote:

Originally Posted by tair (Post 2285830)
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^^

tair 04-14-2015 13:01

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

Originally Posted by DabuDos (Post 2285990)
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

qiuhaian 04-18-2015 01:05

Re: [CS:S/CS:GO] Grenades On Spawn
 
PHP Code:

 if(GetClientTeam(client) == CS_TEAM_T)
 {
  
GivePlayerItem(client"weapon_molotov");
 }
 if(
GetClientTeam(client) == CS_TEAM_CT)
 {
  
GivePlayerItem(client"weapon_incgrenade");
 } 


Spy1337 02-02-2016 15:15

Re: [CS:S/CS:GO] Grenades On Spawn
 
can some change this to "o" flags only?


All times are GMT -4. The time now is 13:14.

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