Hello everyone!
I'm not very good at scripting.
But I really needed a plugin that could give players any weapon from the game.
As I said, I'm not a very good scriptwriter, but I made a working plugin.
Now I post it here so that a normal scriptwriter could remake it and put it in the public domain.
Commands:
HTML Code:
sm_gi <player> <itemindex> - Give Item (Hat or Weapon) to the client
sm_giveitem <player> <itemindex> - Give Item (Hat or Weapon) to the client
sm_gime <itemindex> - Give Item (Hat or Weapon) to yourself.
Include:
HTML Code:
int WeaponGive_GiveWeapon(int client, int weaponIndex, bool IsAttributes = false, char[] attributes = "\0");
bool WeaponGive_CheckIsWeapon(int index, bool customweapons = false);
Current issues:
Spy Weapons.
Video:
[/spoiler]