View Single Post
dYZER
Member
Join Date: Jan 2010
Location: Germany
Old 07-18-2010 , 15:10   Re: Opening doors automatically L4D2
Reply With Quote #5

PHP Code:
    HookEvent("round_start"Event_RoundStartEventHookMode_PostNoCopy);


public 
Action:Event_RoundStart(Handle:eventString:name[], bool:dontBroadcast)
{
    new 
EntCount GetEntityCount();
    new 
String:EdictName[128];
    for (new 
0<= EntCounti++)
    {
    if (
IsValidEntity(i))
        {
            
GetEdictClassname(iEdictNamesizeof(EdictName));
           
// PrintToServer("EdictName %s",EdictName); //debug list all edicts
            
            
if (StrContains(EdictName"prop_door_rotating"false) != -1)
            {
                
AcceptEntityInput(i"use"); //kill:)  didnt know the command 4 doors
                
continue;
            }
        }    
    }

dYZER is offline