Raised This Month: $51 Target: $400
 12% 

[TF2] New Give Weapons And Hats Plugin


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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, 159 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
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:02.


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