Raised This Month: $12 Target: $400
 3% 

[ANY] OM Prop Spawn - Updated 27/6/2011


Post New Thread Reply   
 
Thread Tools Display Modes
jacek2144
Senior Member
Join Date: Jun 2011
Old 05-11-2012 , 10:48   Re: [ANY] OM Prop Spawn - Updated 27/6/2011
Reply With Quote #51

Can you add Possiblity to set health for props example

"Health" "500"
jacek2144 is offline
tejeskifly
Senior Member
Join Date: Jun 2009
Location: Hungary, Szeged
Old 06-21-2012 , 16:15   Re: [ANY] OM Prop Spawn - Updated 27/6/2011
Reply With Quote #52

on my server only ct team can use the prop menu. I try turn off om_prop_teamonly
__________________
tejeskifly is offline
Send a message via MSN to tejeskifly
clickergod
New Member
Join Date: Jul 2012
Old 07-17-2012 , 23:46   Re: [ANY] OM Prop Spawn - Updated 27/6/2011
Reply With Quote #53

is there a way to make it to where if you shoot the props they destroy?
clickergod is offline
Razzer
Junior Member
Join Date: Sep 2012
Old 09-24-2012 , 17:10   Re: [ANY] OM Prop Spawn - Updated 27/6/2011
Reply With Quote #54

Hello, the plugin is very nice. I have a one problem with the explosive barrel. When I said to messere or anschiese may explode

sorry for my bad english
Razzer is offline
Xalaber
New Member
Join Date: Sep 2012
Old 09-30-2012 , 01:02   Re: [ANY] OM Prop Spawn - Updated 27/6/2011
Reply With Quote #55

This is a great mod, but I have concerns when people join my server, they tend to make it lag and I dont want to have to enable the om_prop_removeondeath Convar, but I also don't want to lag my server. Is there any way you can put a prop limit per player? And a way to exchange props back for credits? Just an idea
Xalaber is offline
zipcore
Veteran Member
Join Date: Mar 2010
Location: m_flZipcore
Old 10-15-2012 , 22:26   Re: [ANY] OM Prop Spawn - Updated 27/6/2011
Reply With Quote #56

maybe you can add some features of my special version of your plugin
PHP Code:
public Action:AdminRemovePropAim(clientargs)
{
    new 
prop GetClientAimTarget(clientfalse);
    
    if(!
Entity_IsValid(prop)) 
    {
        return 
Plugin_Handled;
    }
    
    new 
String:EntName[256];
    
Entity_GetName(propEntNamesizeof(EntName));
    new 
validProp StrContains(EntName"DHCPropSpawnProp");
    
    new 
String:EntClassName[256];
    
Entity_GetClassName(propEntClassNamesizeof(EntClassName));
    new 
validClass StrContains(EntClassName"prop_");
    
    if(
validClass > -1)
    {
        if(
validProp > -1)
        {
            
/* Find the client index in the string */
            
new String:tempInd[3];
            
tempInd[0] = EntName[16];
            
tempInd[1] = EntName[17];
            
tempInd[2] = EntName[18];
            
            
/* We should now have the numbers somewhere, let's find out where */
            
ReplaceString(tempIndsizeof(tempInd), "_""");
            
            new 
clientIndex StringToInt(tempInd);
            new 
Handle:menu CreateMenu(Handle_RemovePropAim_Menu);
            
decl String:buffer[5];
            
            
IntToString(propbuffersizeof(buffer));
            
            
decl String:client_id[100];
            
decl String:client_s[100];
            
IntToString(clientIndexclient_ssizeof(client_s));
            
            
KvGetString(g_kvDBSteamIDclient_sclient_idsizeof(client_id), "");
        
            if(
IsValidClient(clientIndex)) SetMenuTitle(menu"Delete? Owner: %N [ID:%s]"clientIndexclient_id);
            else 
SetMenuTitle(menu"Delete? Owner: Unknown [ID:%s]"client_id);
            
            
AddMenuItem(menubuffer"Yes");
            
AddMenuItem(menubuffer"No");
            
            
SetMenuExitButton(menutrue);
            
DisplayMenu(menuclientMENU_TIME_FOREVER);
            
LogToFile("addons/sourcemod/logs/sm_remove_props.log""%N watched prop spawned by %s"clientclient_id);
        }
        else
        {
            new 
Handle:menu CreateMenu(Handle_RemovePropAim_Menu);
            
decl String:buffer[5];
            
IntToString(propbuffersizeof(buffer));
            
SetMenuTitle(menu"Delete? Orginal Map Prop");
            
AddMenuItem(menubuffer"Yes");
            
AddMenuItem(menubuffer"No");
            
LogToFile("addons/sourcemod/logs/sm_remove_props.log""%N watched map prop"client);
            
            
SetMenuExitButton(menutrue);
            
DisplayMenu(menuclientMENU_TIME_FOREVER);
        }
        
    }
    
    return 
Plugin_Handled;
}
 
public 
Handle_RemovePropAim_Menu(Handle:menuMenuAction:actionclientparam2)
{
    if ( 
action == MenuAction_Select )
    {
        switch (
param2)
        {
            case 
0:
            {
                
decl String:info[5];
                
GetMenuItem(menuparam2infosizeof(info));
                new 
prop StringToInt(info);
                
                new 
String:EntName[256];
                
Entity_GetName(propEntNamesizeof(EntName));
                new 
validProp StrContains(EntName"DHCPropSpawnProp");
                
                new 
String:EntClassName[256];
                
Entity_GetClassName(propEntClassNamesizeof(EntClassName));
                new 
validClass StrContains(EntClassName"prop_p");
                
                if(
validClass > -1)
                {
                    if(
validProp > -1)
                    {
                        
//Remove the prop
                        /* Find the client index in the string */
                        
new String:tempInd[3];
                        
tempInd[0] = EntName[15];
                        
tempInd[1] = EntName[16];
                        
tempInd[2] = EntName[17];
                        
                        
/* We should now have the numbers somewhere, let's find out where */
                        
ReplaceString(tempIndsizeof(tempInd), "_""");
                        
                        new 
clientIndex StringToInt(tempInd);
                        
AcceptEntityInput(prop"kill");
                        
                        
decl String:client_id[100];
                        
decl String:client_s[100];
                        
IntToString(clientIndexclient_ssizeof(client_s));
                        
                        
KvGetString(g_kvDBSteamIDclient_sclient_idsizeof(client_id), "");
                        
                        
PrintToConsole(client"Delted Prop_ID: %d, Owner was Steam_ID: %s"propclient_id);
                        
LogToFile("addons/sourcemod/logs/sm_remove_props.log""%N removed prop spawned by %s"clientclient_id);
                    }
                    else
                    {
                        
AcceptEntityInput(prop"kill");
                        
PrintToConsole(client"Delted Prop_ID: %d, Orginal Map Entity"prop);
                        
LogToFile("addons/sourcemod/logs/sm_remove_props.log""%N removed map prop"client);
                    }
                    
                }
            }
            case 
1:
            {
                
            }
        }
    }


Last edited by zipcore; 10-15-2012 at 22:28.
zipcore is offline
Huntereb
>:) (:<
Join Date: Jul 2012
Old 10-18-2012 , 10:46   Re: [ANY] OM Prop Spawn - Updated 27/6/2011
Reply With Quote #57

How do I get only the RED team to be able to use this in TF2? I see it was made for CSS, is there a chance CT and T could represent BLU and RED in TF2?

Also, any chance this plugin will be getting database support? I want people to gain a certain amount of points every new round, and save them up for whenever they want to use it, instead of only getting a set number of points every round.
Huntereb is offline
polonsky
New Member
Join Date: Nov 2012
Old 11-18-2012 , 04:15   Re: [ANY] OM Prop Spawn - Updated 27/6/2011
Reply With Quote #58

Ok, I just tested this on Hidden source. It loads and works, but I can only spawn props as a hidden. As IRS it says "Sorry, you cannot use this command.".
polonsky is offline
denzel519
Junior Member
Join Date: Mar 2012
Old 01-05-2013 , 11:32   Re: [ANY] OM Prop Spawn - Updated 27/6/2011
Reply With Quote #59

Who can do so that you can both zprops in config or write prop_physics_override prop_physics to box broke and the barrel exploded.
denzel519 is offline
Mocoloni
Junior Member
Join Date: Jan 2013
Location: Spain
Old 01-05-2013 , 11:58   Explosive Barrel problem
Reply With Quote #60

i have added the "explosive barrel" directory. justs make a prop, the barrel not explodes can you fix this problem?

Last edited by Mocoloni; 01-05-2013 at 12:00.
Mocoloni is offline
Reply


Thread Tools
Display Modes

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 07:53.


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