plugin que detecte cuando me suicide
#1
Hola, alguien sabe de algún plugin o metodo para sabe si me auto suicide ya sea cayéndome, me mate por granada o puesto kill en consola.


Resulta que tengo un top de frags, muertes, nivel, reset y puntos y la parte de muertes no suma, probé con los tres métodos de arriba y nada no me suma en el top, por eso acudo acá a ver si existe una forma que te detecte las 3 cosas de arriba.
Responder
#2
Muerte por granada:
Código PHP:
#include <amxmodx>
#include <cstrike>

public plugin_init()
{
    register_event"DeathMsg" "DeathMsg" "a" "4=grenade" "1>0" );
}

public 
DeathMsg()
{
    new iKiller read_data);
    new iVictim read_data);

    if ( iKiller == iVictim )
    {
        new szName32 ];
        get_user_nameiVictim szName charsmaxszName ) );
    
        client_print
print_chat "%s killed by grenade" szName );
    }


Muerte por caída:
Código PHP:
// In plugin_init:
RegisterHam(Ham_Killed"player""@Player_Killed_Post"true);

// elsewhere:
@Player_Killed_Post(thisattacker)
{
    const m_bitsDamageType 76;
    
    
if(get_pdata_int(thism_bitsDamageType5) & DMG_FALL)
    {
        client_print(0print_chat"Died by falling.");
    }
    
    
return HAM_IGNORED;

Responder
#3
If attacker ==victim || !(1 <= attacker <= 32)
[Imagen: zcsztw-4.png] [Imagen: 6u5fj2-4.png]
[Imagen: linkedin_thumb_image.png][Imagen: 76561198283253977.png][Imagen: linkedin_thumb_image.png]
Responder


Salto de foro:


Usuarios navegando en este tema: 1 invitado(s)