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

[TF2Items] Give Weapon (v3.14159, 11/29/2013)


Post New Thread Reply   
 
Thread Tools Display Modes
thatdarnkid
BANNED
Join Date: Nov 2010
Old 12-10-2010 , 10:17   Re: [TF2Items] Give Weapon (v1.4.1.2.2, 12/05/2010)
Reply With Quote #91

Oh hey, this plugin got approved! Congrats Sarge!

EDIT: Here's my version of the .sp file. I didn't want to PasteBin it, as it could potentially get taken by someone else and passed off as their own.

You'll notice the Valve Weapons are missing. I added them to the custom weapons TXT on my server, so this version only contains weapons that are normally available to a player (minus the Khopesh Climber which I left in)
Attached Files
File Type: sp Get Plugin or Get Source (tf2items_giveweapon.sp - 239 views - 52.7 KB)

Last edited by thatdarnkid; 12-15-2010 at 10:58.
thatdarnkid is offline
FlaminSarge
Veteran Member
Join Date: Jul 2010
Old 12-11-2010 , 14:22   Re: [TF2Items] Give Weapon (v1.4.1.2.3, 12/11/2010)
Reply With Quote #92

Updated with natives, new notify convar, and some general fixes.

I'm not gonna add the Natascha stuff til later.

I also fixed up some of the weapons, which I had forgotten to updated, like the buff banner and the backburner. Thanks for your paste, thatdarnkid.
__________________
Bread EOTL GunMettle Invasion Jungle Inferno 64-bit will break everything. Don't even ask.

All plugins: Randomizer/GiveWeapon, ModelManager, etc.
Post in plugin threads with questions.
Steam is for playing games.
You will be fed to javalia otherwise.
Psyduck likes replays.
FlaminSarge is offline
FlaminSarge
Veteran Member
Join Date: Jul 2010
Old 12-11-2010 , 15:17   Re: [TF2Items] Give Weapon (v1.4.1.2.3, 12/11/2010)
Reply With Quote #93

Also a word of warning to anybody, don't make a Weapon replacer plugin out of the natives here. I already made one and will release it shortly. You'll rip your hair out because you wasted the effort.
Srsly.
[TF2Items] Weapon Replace, coming soon.
__________________
Bread EOTL GunMettle Invasion Jungle Inferno 64-bit will break everything. Don't even ask.

All plugins: Randomizer/GiveWeapon, ModelManager, etc.
Post in plugin threads with questions.
Steam is for playing games.
You will be fed to javalia otherwise.
Psyduck likes replays.
FlaminSarge is offline
thatdarnkid
BANNED
Join Date: Nov 2010
Old 12-11-2010 , 20:27   Re: [TF2Items] Give Weapon (v1.4.1.2.3, 12/11/2010)
Reply With Quote #94

Quote:
Originally Posted by FlaminSarge View Post
Updated with natives, new notify convar, and some general fixes.

I'm not gonna add the Natascha stuff til later.

I also fixed up some of the weapons, which I had forgotten to updated, like the buff banner and the backburner. Thanks for your paste, thatdarnkid.
No problem


Quote:
Originally Posted by FlaminSarge View Post
New notify convar
Quote:
tf2items_giveweapon_notify (default is 2): 1- Use ShowActivity2 when givew; 2- Use ShowActivity2 when givew and _ex; 0- Hide all give activity
^-I tried doing this, couldn't figure it out.

Quote:
thatdarnkid - some pushes for removing notices/other fixes
You could just call me "404: User Not Found"

Last edited by thatdarnkid; 12-15-2010 at 10:57.
thatdarnkid is offline
FlaminSarge
Veteran Member
Join Date: Jul 2010
Old 12-12-2010 , 01:52   Re: [TF2Items] Give Weapon (v1.4.1.2.3, 12/11/2010)
Reply With Quote #95

If you set the _notify to 0, it *should* hide the givew and _ex ShowActivity thing (and use ReplyToCommand)
If 1, it displays for givew but not for _ex
if 2, displays for both.
__________________
Bread EOTL GunMettle Invasion Jungle Inferno 64-bit will break everything. Don't even ask.

All plugins: Randomizer/GiveWeapon, ModelManager, etc.
Post in plugin threads with questions.
Steam is for playing games.
You will be fed to javalia otherwise.
Psyduck likes replays.
FlaminSarge is offline
MEDIK
Junior Member
Join Date: Jul 2010
Old 12-13-2010 , 05:06   Re: [TF2Items] Give Weapon (v1.4.1.2.3, 12/11/2010)
Reply With Quote #96

im having problem to add attributes to the cfg: http://pastebin.com/c3QUVqjY
also, when i reloaded the cfg kept showing this on console
" KeyValues Error: RecursiveLoadFromBuffer: got } in key in file addons\sourcemod\configs\tf2items.givecustom. txt
custom_give_weapons_vlolz, 9998,"
__________________
MEDIK is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 12-13-2010 , 05:40   Re: [TF2Items] Give Weapon (v1.4.1.2.3, 12/11/2010)
Reply With Quote #97

Quote:
Originally Posted by MEDIK View Post
KeyValues Error: RecursiveLoadFromBuffer: got } in key in file addons\sourcemod\configs\tf2items.givecustom. txt
custom_give_weapons_vlolz, 9998,
Code:
"attribs"               "134 ; 1" "16 ; 40"
That's not how you do it broski.
__________________
asherkin is offline
MEDIK
Junior Member
Join Date: Jul 2010
Old 12-13-2010 , 06:26   Re: [TF2Items] Give Weapon (v1.4.1.2.3, 12/11/2010)
Reply With Quote #98

Code:
"attribs"        "6 ; 0.25 ; 16 ; 9001"
right now?
__________________
MEDIK is offline
thatdarnkid
BANNED
Join Date: Nov 2010
Old 12-13-2010 , 08:37   Re: [TF2Items] Give Weapon (v1.4.1.2.3, 12/11/2010)
Reply With Quote #99

Quote:
Originally Posted by MEDIK View Post
Code:
"attribs"        "6 ; 0.25 ; 16 ; 9001"
right now?
Indeed!

Every first number is your attribute ID, every second number is it's value.

Just checked my servers error log from yesterday, and noticed this:

Code:
L 12/12/2010 - 00:22:19: [SM] Native "LogAction" reported: Client index 6666 is invalid
L 12/12/2010 - 00:22:19: [SM] Displaying call stack trace for plugin "tf2items_giveweapon.smx":
L 12/12/2010 - 00:22:19: [SM]   [0]  Line 190, C:\Users\User\Desktop\TF2 Stuff\Compiler\scripting\tf2items_giveweapon.sp::Command_WeaponEx()
L 12/12/2010 - 00:22:19: [SM] Native "LogAction" reported: Client index 6667 is invalid
L 12/12/2010 - 00:22:19: [SM] Displaying call stack trace for plugin "tf2items_giveweapon.smx":
L 12/12/2010 - 00:22:19: [SM]   [0]  Line 190, C:\Users\User\Desktop\TF2 Stuff\Compiler\scripting\tf2items_giveweapon.sp::Command_WeaponEx()
L 12/12/2010 - 00:22:19: [SM] Native "LogAction" reported: Client index 6668 is invalid
L 12/12/2010 - 00:22:19: [SM] Displaying call stack trace for plugin "tf2items_giveweapon.smx":
L 12/12/2010 - 00:22:19: [SM]   [0]  Line 190, C:\Users\User\Desktop\TF2 Stuff\Compiler\scripting\tf2items_giveweapon.sp::Command_WeaponEx()
Weapons 6666, 6667 and 6668 are my godly Huntsman, SMG and Bushwacka, all of which happen to be on the Custom weapons TXT.

As well, I think the whole "Command_WeaponEx()" thing might have appear because I changed the command on adminmenu_custom.txt to "sm_giveweapon_ex @me #1", #1 being "Which weapon".

I thought @me would make the command target the player, which it kind of does...but everytime I use it, or one of my VIPs uses sm_giveweapon (which I've also changed to sm_giveweapon @me #1 on adminmenu_custom.txt), the console says "Unknown Command: <sm_giveweapon/giveweapon_ex>"

I'm still using my own revised version of this plugin, by the way. Didn't update to the latest version because the notify thing, well I got rid of that myself (as I've explained above), and the new weapon? Don't need it on the server where my admins can get their grubby little paws on it. I'm content to use my version

Last edited by thatdarnkid; 12-15-2010 at 10:57.
thatdarnkid is offline
MEDIK
Junior Member
Join Date: Jul 2010
Old 12-13-2010 , 14:48   Re: [TF2Items] Give Weapon (v1.4.1.2.1, 11/19/2010)
Reply With Quote #100

Quote:
Alright, so I went ahead and tried to add commands for all these weapons to my adminmenu_custom.txt
where do you put this file
any plugin needed?
__________________
MEDIK is offline
Reply



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 00:53.


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