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

CS:GO Auto Body Clear Request


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
cosmicfugue
New Member
Join Date: Jun 2018
Old 07-18-2018 , 12:36   CS:GO Auto Body Clear Request
Reply With Quote #1

First I apologize for my bad english.

I Have surf server in csgo but there are bodies and weapons everywhere. I want auto body, gun, bloody clear who can help me ?

Thanks For Helping.

Last edited by cosmicfugue; 07-18-2018 at 12:36.
cosmicfugue is offline
iskenderkebab33
Senior Member
Join Date: Jun 2018
Old 07-18-2018 , 16:18   Re: CS:GO Auto Body Clear Request
Reply With Quote #2

uhh? this https://forums.alliedmods.net/showpo...02&postcount=5 to remove weapons or with Console CMD mp_death_drop_gun 0

and

remove body https://forums.alliedmods.net/showthread.php?p=622834

Last edited by iskenderkebab33; 07-18-2018 at 16:28.
iskenderkebab33 is offline
LenHard
Senior Member
Join Date: Jan 2016
Old 07-18-2018 , 19:43   Re: CS:GO Auto Body Clear Request
Reply With Quote #3

PHP Code:
#include <sourcemod>
#include <sdktools_functions>
#include <sdktools_entinput>

#pragma newdecls required
#pragma semicolon 1

public void OnPluginStart() {
    
HookEvent("player_death"Event_PlayerDeathEventHookMode_Pre);
}

public 
void Event_PlayerDeath(Event hEvent, const char[] sEventNamebool bDontBroadcast)
{
    
int client GetClientOfUserId(hEvent.GetInt("userid"));
    
    if (
client <= MaxClients && IsClientInGame(client))
    {        
        
int iRagdoll GetEntPropEnt(clientProp_Send"m_hRagdoll");
        if (
IsValidEdict(iRagdoll)) AcceptEntityInput(iRagdoll"Kill");
        
        
int offset FindDataMapInfo(client"m_hMyWeapons") - 4;
        
        for (
int i 048i++) 
        {
            
offset += 4;
    
            
int iWeapon GetEntDataEnt2(clientoffset);
            
            if (
IsValidEdict(iWeapon)) 
            {
                
int iAmmo FindDataMapInfo(client"m_iAmmo") + (GetEntProp(iWeaponProp_Data"m_iPrimaryAmmoType") * 4);
                
SetEntData(clientiAmmo04true);
        
                
iAmmo FindDataMapInfo(client"m_iAmmo") + (GetEntProp(iWeaponProp_Data"m_iSecondaryAmmoType") * 4);
                
SetEntData(clientiAmmo04true);
        
                if (
RemovePlayerItem(clientiWeapon)) 
                    
AcceptEntityInput(iWeapon"Kill");
            }
        }
    }

__________________
LenHard is offline
Ilusion9
Veteran Member
Join Date: Jun 2018
Location: Romania
Old 07-19-2018 , 09:59   Re: CS:GO Auto Body Clear Request
Reply With Quote #4

CS:GO CVARS:

PHP Code:

weapon_max_before_cleanup 20 
(maximum 20 dropped weapons on map)
- If 
set to non-zerowill remove the oldest dropped weapon to maintain the specified number of dropped weapons in the world
or

PHP Code:

weapon_auto_cleanup_time 10 
(seconds)
- If 
set to non-zeroweapons will delete themselves after the specified time (in seconds) if no players are near

Last edited by Ilusion9; 07-19-2018 at 13:22.
Ilusion9 is offline
cosmicfugue
New Member
Join Date: Jun 2018
Old 07-19-2018 , 14:02   Re: CS:GO Auto Body Clear Request
Reply With Quote #5

Quote:
Originally Posted by LenHard View Post
PHP Code:
#include <sourcemod>
#include <sdktools_functions>
#include <sdktools_entinput>

#pragma newdecls required
#pragma semicolon 1

public void OnPluginStart() {
    
HookEvent("player_death"Event_PlayerDeathEventHookMode_Pre);
}

public 
void Event_PlayerDeath(Event hEvent, const char[] sEventNamebool bDontBroadcast)
{
    
int client GetClientOfUserId(hEvent.GetInt("userid"));
    
    if (
client <= MaxClients && IsClientInGame(client))
    {        
        
int iRagdoll GetEntPropEnt(clientProp_Send"m_hRagdoll");
        if (
IsValidEdict(iRagdoll)) AcceptEntityInput(iRagdoll"Kill");
        
        
int offset FindDataMapInfo(client"m_hMyWeapons") - 4;
        
        for (
int i 048i++) 
        {
            
offset += 4;
    
            
int iWeapon GetEntDataEnt2(clientoffset);
            
            if (
IsValidEdict(iWeapon)) 
            {
                
int iAmmo FindDataMapInfo(client"m_iAmmo") + (GetEntProp(iWeaponProp_Data"m_iPrimaryAmmoType") * 4);
                
SetEntData(clientiAmmo04true);
        
                
iAmmo FindDataMapInfo(client"m_iAmmo") + (GetEntProp(iWeaponProp_Data"m_iSecondaryAmmoType") * 4);
                
SetEntData(clientiAmmo04true);
        
                if (
RemovePlayerItem(clientiWeapon)) 
                    
AcceptEntityInput(iWeapon"Kill");
            }
        }
    }

Thanks for helping,

but i have fun servers, what is the plugin enable code ? i dont want plugin playing in jailbreak and other maps, i want just surf? i have maps prefix but i need plugins enable code..
cosmicfugue is offline
LenHard
Senior Member
Join Date: Jan 2016
Old 07-19-2018 , 20:05   Re: CS:GO Auto Body Clear Request
Reply With Quote #6

Quote:
Originally Posted by cosmicfugue View Post
Thanks for helping,

but i have fun servers, what is the plugin enable code ? i dont want plugin playing in jailbreak and other maps, i want just surf? i have maps prefix but i need plugins enable code..
PHP Code:
#include <sourcemod> 
#include <sdktools_functions> 
#include <sdktools_entinput> 

#pragma newdecls required 
#pragma semicolon 1 

ConVar gCV_Enable;

public 
void OnPluginStart() 

    
gCV_Enable CreateConVar("cleanup_enable""1""Enables the clean up plugin."FCVAR_NOTIFYtrue0.0true1.0);
    
    
HookEvent("player_death"Event_PlayerDeathEventHookMode_Pre); 


public 
void Event_PlayerDeath(Event hEvent, const char[] sEventNamebool bDontBroadcast

    if (!
gCV_Enable.BoolValue)
        return;
        
    
int client GetClientOfUserId(hEvent.GetInt("userid")); 
     
    if (
client <= MaxClients && IsClientInGame(client)) 
    {         
        
int iRagdoll GetEntPropEnt(clientProp_Send"m_hRagdoll"); 
        if (
IsValidEdict(iRagdoll)) AcceptEntityInput(iRagdoll"Kill"); 
         
        
int offset FindDataMapInfo(client"m_hMyWeapons") - 4
         
        for (
int i 048i++)  
        { 
            
offset += 4
     
            
int iWeapon GetEntDataEnt2(clientoffset); 
             
            if (
IsValidEdict(iWeapon))  
            { 
                
int iAmmo FindDataMapInfo(client"m_iAmmo") + (GetEntProp(iWeaponProp_Data"m_iPrimaryAmmoType") * 4); 
                
SetEntData(clientiAmmo04true); 
         
                
iAmmo FindDataMapInfo(client"m_iAmmo") + (GetEntProp(iWeaponProp_Data"m_iSecondaryAmmoType") * 4); 
                
SetEntData(clientiAmmo04true); 
         
                if (
RemovePlayerItem(clientiWeapon))  
                    
AcceptEntityInput(iWeapon"Kill"); 
            } 
        } 
    } 

cleanup_enable is the convar to enable/disable the plugin.
__________________
LenHard is offline
Reply



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 00:37.


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