Glow 30kills
#1
Whatever activar el glow de un jugador que lleve 30 kills sin morir y emitir un sonido..

la unica parte que no entiendo .. como elimino el glow si muere Genius
Responder
#2
No esta testeado, pruebalo
Código PHP:
#include <amxmodx>
#include <fun>

#define KILL_GLOW 30
#define COLOR_GLOW    random_num(0, 255), random_num(0, 255), random_num(0, 255)
#define is_sound_wav(%1)  equali( %1[strlen( %1 ) - 4 ], ".wav" )

new g_Kills[33];

new const 
Sound[]="carpeta/sonido.wav" //TAMBIEN SIRVE PARA MP3

public plugin_init()
{
    
register_plugin("Glow 30k""0.1""Ale-.")
    
register_event("DeathMsg""DeathMsg""a")    
}

public 
DeathMsg()
{
    new 
Atacante read_data(1)
    new 
Victima read_data(2)

    if(
Victima == Atacante || !is_user_connected(Victima) || !is_user_connected(Atacante))
        return;

    
g_Kills[Atacante]++
    
g_Kills[Victima]=0
    Chequeo
(Atacante)
}

Chequeo(id)
{
    if(
g_Kills[id] >= 30)
    {
        
g_Kills[id] = //REINICIAMOS LA VARIABLE DE LOS KILLS A 0 DE NUEVO.
        
set_user_rendering(idkRenderFxNoneCOLOR_GLOWkRenderNormal0//LE DAMOS GLOW

        
if(is_sound_wav(Sound)) client_cmd(id"spk %s"Sound//HACEMOS 
        
else client_cmd(id"mp3 play sound/%s"Sound)           //QUE SUENE
    
}


Hey, el glow se quita al morir.
Responder


Salto de foro:


Usuarios navegando en este tema: 1 invitado(s)