AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [CSGO] Gun Menu 1.2 [2016/03/06] (https://forums.alliedmods.net/showthread.php?t=259355)

Grey83 03-05-2015 17:20

[CSGO] Gun Menu 1.2 [2016/03/06]
 
6 Attachment(s)
Name: Gun Menu

Description: This plugin is a modification of the plugin [CSS] Gun Menu by LumiStance. Has been fixed part of the code to be compatible with CS:GO.
When you seize control of a bot, then you have the weapon that you were chosen from the menu, and not something that bot was equipped.

Installation: Place compiled plugin (sm_gunmenu.smx) into the plugins folder (../addons/sourcemod/plugins/). Place the configuration file (gunmenu.ini) into the config folder (../addons/sourcemod/configs/).
Changes to gunmenu.ini are read at map/plugin load time.

Commands: sm_guns and sm_gunmenu - When enabled, presents player with menus to choose primary and secondary weapons

Hints: It can be used for game modes other than Deathmatch. On this case, I advise you to set the following parameters in the used file gamemode_*.cfg:
  • cash_player_*, cash_team_*, mp_death_drop_defuser, mp_freezetime, mp_maxmoney to «0» (if you disable the buy zones on map)
  • ammo_grenade_limit_total to ≥ «4» (depending on the number of grenades, registered in the configuration file)

Unlike the original plugin: Were removed from the plugin and config parameters responsible for the health and nightvision, added weapons from CS:GO.

Changes in 1.2 [2016/03/06]:
  • Added team and bot restrictions (admins always have access to the menu)
  • Added an option for on/off show menu on spawn
Changes in 1.1 [2016/03/05]:
  • Added new items: TA granade, Health Shots & R8 Revolver
  • Added parameter responsible for the number of flashbangs and health shots after respawn will get player
  • Added an option for control player's access to the menu (if "for_all" = "no", then only admins will be able to open the menu)

ToDo:
  • Add parameter responsible for the number of flashbangs after respawn will get player
  • Add a menu where the player can choose what grenades (and taser) it will get after respawn

natrios 03-06-2015 06:23

Re: [CSGO] Gun Menu
 
Can be set to be at the beginning of 2 grenades smoke?

Grey83 03-06-2015 09:42

Re: [CSGO] Gun Menu
 
natrios, no.
Only one smoke granade: first you need to within the game allow the ability to carry more than 1 smoke grenades at the same time, but the game has an option only for flash bangs, as far as I know.

natrios 03-07-2015 08:51

Re: [CSGO] Gun Menu
 
thanks for the reply :)

you can add a command to the time limit their ability to buy weapons? f.e. to 30sec.?
Badly in need of this plugin ;(

//later

You can add command?
Quote:

!smoke - buy smoke
!he -buy he
!molotov - buy molotov
!flash - buy flashbang
And to add a limit on grenades?
example:
Quote:

hegrenade_max "3"
smokegrenade_max "2"
It would then great! :fox:

Grey83 03-07-2015 16:18

Re: [CSGO] Gun Menu
 
natrios, do you offer something like this plugin, but with access for all, and to receive only grenades?

If you do not disable the buy zones, then the player can always buy weapons in a standard buy menu . And the time to buy is configured in the server settings.
Or did you mean something else?

About restrictions for grenades: I have no idea how to implement it.
I might think about it.

natrios 03-07-2015 16:46

Re: [CSGO] Gun Menu
 
I turned off the server buyzone:
Quote:

"buy_zones" "no"
Wants to be able to do so only at the beginning (30 seconds). Or give a command input limit -x1 on respawn.


It would be best to remove the commands and usutawić to the menu shown a weapon at the beginning of every round of.
Can you do that for me?:cry:

Grey83 03-07-2015 18:33

Re: [CSGO] Gun Menu
 
Quote:

Originally Posted by natrios (Post 2270989)
Wants to be able to do so only at the beginning (30 seconds).

Disable buy zones only within the first 30 seconds of the round?
Quote:

Originally Posted by natrios (Post 2270989)
Or give a command input limit -x1 on respawn.

Allow the player to call the menu only once after each of its spawn?
Quote:

Originally Posted by natrios (Post 2270989)
It would be best to remove the commands and usutawić to the menu shown a weapon at the beginning of every round of.

Ban call the menu with the command, but make that menu appear at the beginning of each round?
I can do this. As soon as things settle down in the code of the plugin

Chesterfield 03-07-2015 20:02

Re: [CSGO] Gun Menu
 
Perfect plugin for my Zombie mod server, thanks !

natrios 03-08-2015 05:52

Re: [CSGO] Gun Menu
 
/edit

fix

Chesterfield 03-11-2015 14:01

Re: [CSGO] Gun Menu
 
Hello, such a great plugin, could you please add a time that will block the guns menu after 1 min that the round started? because, (i'm using it in my zm server btw) people can simply spam !guns and get any gun they want any time.

So what i'm asking is if you can add a cvar that blocks the menu after some time, thanks in advanced and great plugin!

KOkokosz 05-01-2015 11:46

Re: [CSGO] Gun Menu
 
Quote:

Originally Posted by Chesterfield (Post 2272661)
Hello, such a great plugin, could you please add a time that will block the guns menu after 1 min that the round started? because, (i'm using it in my zm server btw) people can simply spam !guns and get any gun they want any time.

So what i'm asking is if you can add a cvar that blocks the menu after some time, thanks in advanced and great plugin!

Use https://forums.alliedmods.net/showthread.php?p=2100802

coty9090 07-08-2015 18:55

Re: [CSGO] Gun Menu
 
Works great on my csgo server. thanks!

Can you add team/bot restrictions?

Grey83 07-17-2015 09:09

Re: [CSGO] Gun Menu
 
Quote:

Originally Posted by coty9090 (Post 2317379)
Can you add team/bot restrictions?

Maybe later I add settings for bots

Jackol1234 11-17-2015 22:22

Re: [CSGO] Gun Menu
 
Is there anyway to make it so it won't open on spawn?

Grey83 11-18-2015 09:59

Quote:

Originally Posted by Jackol1234 (Post 2364082)
Is there anyway to make it so it won't open on spawn?

Only if rewrite plugin

Grey83 03-05-2016 14:08

Re: [CSGO] Gun Menu 1.1 [2016/03/05]
 
1 Attachment(s)
Added new variable and items.

After the introduction of new rules at the expense of plugins for CS:GO
Quote:

To be clear, the services that should not be offered on a community server include (but are not limited to):
– Allowing players to claim temporary ownership of CS:GO items that are not in their inventory (Weapon skins, knives, etc.).
and GSLTs I no longer plan to be engaged CS:GO servers and I have no way to test the functionality of plugins for this game.
So my plugin You use at your own risk.


Below is the old settings file for the plugin [CSGO] Gun Menu 1.0

j1gg 03-05-2016 19:17

Re: [CSGO] Gun Menu 1.1 [2016/03/05]
 
Its possible to setup it only for ct?

Grey83 03-06-2016 05:08

Quote:

Originally Posted by Jackol1234 (Post 2364082)
Is there anyway to make it so it won't open on spawn?

Quote:

Originally Posted by coty9090 (Post 2317379)
Can you add team/bot restrictions?

Quote:

Originally Posted by j1gg (Post 2399767)
Its possible to setup it only for ct?

Done

HIRAMEte0r 04-24-2016 02:22

Re: [CSGO] Gun Menu
 
Quote:

Originally Posted by Grey83 (Post 2271029)
Allow the player to call the menu only once after each of its spawn?

Could you add this command?

Grey83 04-24-2016 10:01

Quote:

Originally Posted by HIRAMEte0r (Post 2413685)
Could you add this command?

You can just use admin_overrides.cfg to do this (set flag Z eg.): player can't open a menu by command, if he/she has the right less than have been exhibited for the command, but the menu is still opens when the player has spawned.

Dorin07 05-29-2016 05:22

Re: [CSGO] Gun Menu 1.2 [2016/03/06]
 
Please help my have dis eror
05/29/2016 - 09:51:50: [SM] Blaming: csgo_gunmenu 1.2.smx()
L 05/29/2016 - 09:51:50: [SM] Call stack trace:
L 05/29/2016 - 09:51:50: [SM] [0] SetConVarString
L 05/29/2016 - 09:51:50: [SM] [1] Line 147, /home/groups/sourcemod/upload_tmp/phppM4ciC.sp::OnMapStart()

Grey83 05-29-2016 09:13

Quote:

Originally Posted by Dorin07 (Post 2422900)
Please help my have dis eror

You can remove the strings 38 and 147 without losing the functionality of the plugin.

Madmatti 07-20-2016 11:41

Re: [CSGO] Gun Menu 1.2 [2016/03/06]
 
Hey there,

thanks for the awesome plugin. I am using this on our team training / retake server. In the gunmenu.ini file, you state the following:

// How much should give a flashbangs (0 - 2)
"flashbangs" "2"

However, that does not work for me. I verified that players are allowed to have 2 flashbangs on my server, but they spawn without any (they get smokes and mollys and HEs).
Changing
"flashbangs" "2"
to
"flashbangs" "yes"
makes them spawn with one flashbang. I believe this to be a small bug. Should you find the time to fix this, would you mind allowing a wider range than 0-2? It'd be sick to allow people to have 3+ flashbangs (even though the cvars ammo_grenade_limit_flashbang and ammo_grenade_limit_total might need adjusting then). That'd make it easier to teach people to use nades more often.

Thank you ;-) Keep up the good work!

Madmatti

Grey83 07-21-2016 12:28

Re: [CSGO] Gun Menu 1.2 [2016/03/06]
 
Madmatti, what version of plugin are You use?

Madmatti 07-22-2016 15:33

Re: [CSGO] Gun Menu 1.2 [2016/03/06]
 
Ohh, I just downloaded the top plugin. Now I realised that the top plugin is actually not the latest.
sm plugins prints:
"[CS:GO] Gun Menu" (1.0-lm) by LumiStance (adapting by Grey83)

Thanks for your reply.

usla 10-01-2016 15:01

Re: [CSGO] Gun Menu 1.2 [2016/03/06]
 
nice but i need to recompile your plugin to remove the bell sound bugs out my quake sounds

Grey83 10-02-2016 04:21

Quote:

Originally Posted by usla (Post 2458395)
nice but i need to recompile your plugin to remove the bell sound bugs out my quake sounds

just comment out the line 106 (HookEvent("player_death", Event_PlayerDeath);) and compile

usla 10-03-2016 08:21

Re: [CSGO] Gun Menu 1.2 [2016/03/06]
 
Quote:

Originally Posted by Grey83 (Post 2458514)
just comment out the line 106 (HookEvent("player_death", Event_PlayerDeath);) and compile

Thx. but its still there after i removed the line and recompiled it

Grey83 10-03-2016 09:54

1 Attachment(s)
usla, try that version

usla 10-08-2016 03:43

Re: [CSGO] Gun Menu 1.2 [2016/03/06]
 
Thanks i'm using it right now :)

Magnusklaris 11-14-2016 08:39

Re: [CSGO] Gun Menu 1.2 [2016/03/06]
 
Gun Menu are shown for every player, even when "no" is written.. What to do?

Grey83 11-14-2016 08:47

Re: [CSGO] Gun Menu 1.2 [2016/03/06]
 
Magnusklaris, where is written "no"?

Magnusklaris 11-14-2016 08:57

Re: [CSGO] Gun Menu 1.2 [2016/03/06]
 
Everywhere, also "Allow players to open menu on spawn"
i only want admins to choose weapons and allow them to recieve.. other players should buy in the normal menu

Grey83 11-14-2016 09:02

Re: [CSGO] Gun Menu 1.2 [2016/03/06]
 
Magnusklaris, after changes in the config, was changed map or no?

Magnusklaris 11-14-2016 09:44

Re: [CSGO] Gun Menu 1.2 [2016/03/06]
 
Whole server was restartet.

Grey83 11-14-2016 09:53

Re: [CSGO] Gun Menu 1.2 [2016/03/06]
 
Magnusklaris, just try change value of variable for_all to no
on_spawn change back to yes

Magnusklaris 11-14-2016 09:56

Re: [CSGO] Gun Menu 1.2 [2016/03/06]
 
1 Attachment(s)
So i should change it back to yes? Like this?

Grey83 11-14-2016 10:03

1 Attachment(s)
like this

Magnusklaris 11-14-2016 10:21

Re: [CSGO] Gun Menu 1.2 [2016/03/06]
 
But will players not be able to open the menu and choose weapon anyway?

Grey83 11-14-2016 10:54

Re: [CSGO] Gun Menu 1.2 [2016/03/06]
 
Magnusklaris, yes. Only admins can see gunmenu after their spawn and open this menu by command


All times are GMT -4. The time now is 04:12.

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