Raised This Month: $ Target: $400
 0% 

[TF2] Making a Building Level 3


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Alfonso Crawford
Member
Join Date: Feb 2012
Old 06-27-2014 , 14:29   Re: [TF2] Making a Building Level 3
Reply With Quote #3

PHP Code:
public OnPluginStart() {
    ...
    
HookEvent("player_builtobject"SetBuildingLevel);
}


public 
Action:SetBuildingLevel(Handle:event, const String:name[],
    
bool:dontBroadcast) {
    new 
index GetEventInt(event"index");
    new 
building EntIndexToEntRef(index);
    
SetEntData(building,
               
FindSendPropOffs("CObjectSentrygun","m_iHighestUpgradeLevel"),
               
34true);

Thanks for the tip, dude! It's exactly what I needed! Now all I have to do is wrap it up so that only the SH gets the perk (no problem at all to do), and I'm set~!

How do I marked a thread as solved, again?

Last edited by Alfonso Crawford; 06-27-2014 at 14:30.
Alfonso Crawford 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