Raised This Month: $ Target: $400
 0% 

Solved [Answered]Would this make everyone's weapon quality Valve?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
WildCard65
Veteran Member
Join Date: Aug 2013
Location: Canada
Old 12-30-2013 , 15:35   [Answered]Would this make everyone's weapon quality Valve?
Reply With Quote #1

PHP Code:
public Action:TF2Items_OnGiveNamedItem(clientString:classname[], iItemDefinitionIndex, &Handle:hItem)
{
    
hItem=TF2Items_CreateItem(OVERRIDE_ATTRIBUTES);
    
TF2Items_SetClassname(hItem,classname);
    
TF2Items_SetItemIndex(hItem,iItemDefinitionIndex);
    
TF2Items_SetQuality(hItem,8);
    
TF2Items_SetLevel(hItem,5000);
    
TF2Items_SetNumAttributes(hItem,1);
    
TF2Items_SetAttribute(hItem,1,134,1);
    
TF2Items_GiveNamedItem(client,hItem);
    
CloseHandle(hItem);
    return 
Plugin_Changed;

Edit:I'm also new to making sourcemod plugins.

Last edited by WildCard65; 12-31-2013 at 14:11.
WildCard65 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 19:21.


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