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

[CSGO/ANY?] Remove Body


Post New Thread Reply   
 
Thread Tools Display Modes
Author
leandro442
Member
Join Date: Sep 2013
Location: Portugal
Plugin ID:
8264
Plugin Version:
1.0
Plugin Category:
General Purpose
Plugin Game:
Counter-Strike: GO
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    when you kill someone the body disappears
    Old 11-01-2022 , 05:52   [CSGO/ANY?] Remove Body
    Reply With Quote #1

    When you kill someone the body disappears, it's good for dm and ffa servers
    Attached Files
    File Type: sp Get Plugin or Get Source (Remover_Corpo.sp - 196 views - 486 Bytes)
    File Type: smx Remover_Corpo.smx (2.9 KB, 67 views)
    leandro442 is offline
    Bacardi
    Veteran Member
    Join Date: Jan 2010
    Location: mom's basement
    Old 02-24-2023 , 15:46   Re: [CSGO/ANY?] Remove Body
    Reply With Quote #2

    With 10 sec delay
    PHP Code:

    #include <sdktools>

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

    public 
    void player_death(Event event, const char[] namebool dontBroadcast)
    {
        
    CreateTimer(10.0delayevent.GetInt("userid"), TIMER_FLAG_NO_MAPCHANGE);
    }

    public 
    Action delay(Handle timerany userid)
    {

        
    int client GetClientOfUserId(userid);
        
        if(!
    client || !IsClientInGame(client))
            return 
    Plugin_Continue;

        
        
    int m_hRagdoll GetEntPropEnt(clientProp_Send"m_hRagdoll");


        if(
    m_hRagdoll != -&& IsValidEdict(m_hRagdoll))
        {
            
    AcceptEntityInput(m_hRagdoll"Kill");
        }
        
        return 
    Plugin_Continue;

    __________________
    Do not Private Message @me
    Bacardi is offline
    Jasous
    Junior Member
    Join Date: Jan 2023
    Old 02-24-2023 , 16:33   Re: [CSGO/ANY?] Remove Body
    Reply With Quote #3

    Quote:
    Originally Posted by Bacardi View Post
    With 10 sec delay
    PHP Code:

    #include <sdktools>

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

    public 
    void player_death(Event event, const char[] namebool dontBroadcast)
    {
        
    CreateTimer(10.0delayevent.GetInt("userid"), TIMER_FLAG_NO_MAPCHANGE);
    }

    public 
    Action delay(Handle timerany userid)
    {

        
    int client GetClientOfUserId(userid);
        
        if(!
    client || !IsClientInGame(client))
            return 
    Plugin_Continue;

        
        
    int m_hRagdoll GetEntPropEnt(clientProp_Send"m_hRagdoll");


        if(
    m_hRagdoll != -&& IsValidEdict(m_hRagdoll))
        {
            
    AcceptEntityInput(m_hRagdoll"Kill");
        }
        
        return 
    Plugin_Continue;


    OMG THANK YOU SO MUCH It worked for me
    you are a lifesaver
    Jasous is offline
    Grey83
    Veteran Member
    Join Date: Dec 2014
    Location: Ukraine
    Old 02-25-2023 , 05:11   Re: [CSGO/ANY?] Remove Body
    Reply With Quote #4

    PHP Code:
    #include <sdktools_entinput>
    #tryinclude <sdktools_variant_t>

    public void OnEntityCreated(int entity, const char[] classname)
    {
        if(
    strcmp(classname"cs_ragdoll")) return;

        
    SetVariantString("OnUser1 !self:kill::10.0:1");    // ragdoll will be deleted after 10 seconds
        
    AcceptEntityInput(entity"AddOutput");
        
    AcceptEntityInput(entity"FireUser1");

    __________________

    Last edited by Grey83; 02-25-2023 at 05:11.
    Grey83 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 01:37.


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