Raised This Month: $ Target: $400
 0% 

[TF2] Making a Building Level 3


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Tylerst
Veteran Member
Join Date: Oct 2010
Old 06-27-2014 , 23:22   Re: [TF2] Making a Building Level 3
Reply With Quote #7

PHP Code:
#include <tf2_stocks>

public OnPluginStart()
{
    
HookEvent("player_builtobject"Object_Built);
}

public 
Object_Built(Handle:event, const String:name[], bool:dontBroadcast)
{
    new 
building GetEventInt(event"index");
    if(
GetEntProp(buildingProp_Send"m_bMiniBuilding")) return;
    new 
weapon GetPlayerWeaponSlot(GetClientOfUserId(GetEventInt(event"userid")), TFWeaponSlot_Melee);
    if(
IsValidEntity(weapon) && GetEntProp(weaponProp_Send"m_iItemDefinitionIndex") == 155)
    {
        
SetEntProp(buildingProp_Send"m_iHighestUpgradeLevel"3);
    }

Tylerst 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 21:28.


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