View Single Post
Author Message
Mr_panica
Senior Member
Join Date: Jan 2017
Location: Russia, Saint-Petersburg
Old 12-08-2021 , 10:15   [TF2] New Give Weapons And Hats Plugin
Reply With Quote #1

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]
Attached Files
File Type: sp Get Plugin or Get Source (weapongive.sp - 209 views - 27.6 KB)
File Type: inc weapongive.inc (980 Bytes, 158 views)
File Type: txt TF2_UTILs.txt (1.4 KB, 159 views)
File Type: txt tf2items.givecustom.txt (5.9 KB, 147 views)
__________________
Sorry for my English.

Last edited by Mr_panica; 12-08-2021 at 11:49.
Mr_panica is offline