I've listened to many suggestions and requests about a plugin, which to have a menu only with snipers to buy. I didn't find similar one, but if there already is, please excuse me. I think this plugin may be usefull for CSDM or Surf servers, where the owners doesn't want to have free snipers and campers with them everywhere.
- The menu includes the 4 snipers: AWP, G3SG1, SG552, Scout.
- Each of them can be turned on/off from the menu with cvars. If the sniper is turned off, it gets unclickable and it's name in the menu changes, also the color.
- Snipers' prices can also be changed via cvars.
- I've also added a bonus deagle option, for the fun servers - whoever likes this add, it could be also turned on/off with cvars.
*That bonus deagle option can refer to givin deagle with every sniper and giving deagle by chance with percent, which is also constrolable vie cvar.
- Also included a chat messages prefix, which you can change with cvar.
1. Turning on/off the snipers:
/Turns on/off the AWP/
/Turns on/off the G3SG1/
/Turns on/off the SG552/
/Turns on/off the Scout/
*All the snipers are turned on by default.
*1 - sniper will appear in the menu.
*0 - sniper won't be in the menu.
2. The prices of the different snipers:
/The price of the AWP/
/The price of the G3SG1/
/The price of the SG552/
/The price of the Scout/
3. And here is the Bonus Deagle cvar:
/If 0, won't give bonus deagle/
/If 1, it will give a bonus deagle with every sniper/
/If 2, it will give a chance to give sniper, which percent of chance you can control with cvar/
/This cvar is important only if the cvar above is set to 2/
/That's the percent of chance to give a deagle bonus with the sniper/
/In every different opening of menu, the chance will be checked again/
4. The chat prefix (it will be green):
And here is another cvar, which defines the main function - the type of giving the sniper, and deagle if defined by cvars.
5. Giving the sniper type:
/0 - Only adds the sniper to the other weapon of the player. And now he will have two guns - the previous weapon and the sniper/
/1 - Will strip user primary weapons and give him only a sniper/
- Rewrote the whoole code to a brand new level
- Added the bonus deagle chance option
- Renew the cvar getting type
- Renew the main style of menu
- Renew the checks for turning om/off the snipers
- the whole idea and the helpful example of working with enums. Great idea for this method, thanks a lot!
You should compile the plugin localy, because of the includes needed. They are attached in the thread.