View Single Post
Tylerst
Veteran Member
Join Date: Oct 2010
Old 04-26-2012 , 17:38   Re: how would I write this plugin?
Reply With Quote #2

PHP Code:
new entity = -1;
while ((
entity FindEntityByClassname(entity"logic_branch"))!=INVALID_ENT_REFERENCE)
{
    new 
String:entName[MAX_NAME_LENGTH];
    
GetEntPropString(entityProp_Data"m_iName"entNamesizeof(entName));
    if(
StrEqual(entName"name1"))
    {
        
SetVariantBool(true);
        
AcceptEntityInput(entity"SetValueTest");
        break;
    }


Last edited by Tylerst; 04-26-2012 at 17:42.
Tylerst is offline