Weapon Training Mod

Post Reply
greenie
Full Member
Full Member
Posts: 1815
Joined: Sun Nov 21, 2021 4:55 pm
Jucator SA:MP ?: Nu
Nick:: greenie
Jucator CS ?: Nu

Weapon Training Mod

Post by greenie »

Do you know this problem, wanting to train usage of a certain weapon with your clan members but being unable
1. to afford it every round start
2. terrs to buy CT weapons / CTs to buy Terr weapons
3. to buy / pick up the certain weapon cuz it doesn't exist on the map you're playing?
Imagine both teams want to train M4A1 - Terrs will encounter problems.

I wrote a plugin that needs to be told which weapon / item / ammo to give the players and everyone will get the weapon once every respawn, so problems buying them will be no more, furthermore allowing ppl to spend their money on armor, grens and stuff.

CVars:
amx_weapon <-- Set this to the weapon you want the players to get, eg awp, m4a1, aug, ak47 etc
amx_ammo <-- To give ammo ( I didn't yet find out what you can give though)
amx_item <-- To give a certain item
You do NOT have to add weapon_ / ammo_ / item_ in front of the weapon / ammo / item name, this is done by the script automatically!

To disable the script, just set the cvars of the feature you do not intend to use to "" (empty string) and this part of the plugin will not do anything, so to diable it completely set all the three CVars to "".

Requirements:
- knowledge of the weapon names :: for CS, see the list below or use my commandmenu from... below ^^
- fun module (uses give_item function)

Idea, Coding and Testing by MistaGee


UPDATES:
- Updated the routine that checks which weapons you have so the script doesn't give you 32 weapons any more
- #define'd the console messages so they can be changed easier
- removed the #include <cstrike> which was obsolete anyway

plugin
source
Post Reply

Return to “General Purpose”