ColorEffect Kill
#1
Wenas, No tengo mucho que decir solo necesito que me expliquen o alguien si es amable como cambiarle el RGB a este plugins lo quisiera poner color rosado ya que el servidor que estoy editando es de mujeres.

Código PHP:
#include <amxmodx>
#include <fakemeta>
#include <hamsandwich>

#define PLUGIN_NAME    "FPD + HSECFG"
#define PLUGIN_VERSION "1.0"
#define PLUGIN_AUTHOR  "Numb/mut2nt (MastaMan Edition)"


new fpd_hsecfg_soundfpd_hsecfg_fadefpd_hsecfg_camera

public plugin_init()
{
    
register_plugin(PLUGIN_NAMEPLUGIN_VERSIONPLUGIN_AUTHOR);
    
    
fpd_hsecfg_sound register_cvar"fpd_hsecfg_sound""0" )
    
fpd_hsecfg_fade register_cvar"fpd_hsecfg_fade""1" )
    
fpd_hsecfg_camera register_cvar"fpd_hsecfg_camera""1" )
    
    
RegisterHam(Ham_Killed"player""killed_player"1);
}

public 
killed_player(id)
{
    if (
get_pcvar_num(fpd_hsecfg_sound))
    {
        
client_cmd(id,"spk fvox/flatline.wav")
    }
    
    if (
get_pcvar_num(fpd_hsecfg_fade))
    {
        
message_begin(MSG_ONE_UNRELIABLE,get_user_msgid("ScreenFade"),{0,0,0},id)
        
write_short10<<12 )
        
write_short10<<16 )
        
write_short1<<)
        
write_byterandom_num(60255) )
        
write_byte)
        
write_byte)
        
write_byterandom_num(60255) )
        
message_end()
    }
    
    if (
get_pcvar_num(fpd_hsecfg_camera))
    {
        
set_pev(idpev_iuser10)
        
set_pev(idpev_gravity3.0
        
set_pev(idpev_maxspeed10)
    }


Código:
Otro plugins seria que no he conseguido o me he quedado ciego

Uno que cuando mate a una persona de headshot le de una granada al player y vida como el vampire pero el que tengo no da la granada y ponerle el color rosado tambien si se puede les dejo el code para que vean.

Código PHP:
#include <amxmodx>
#include <fun>

#define PLUGIN_VERSION "1.0c"

new health_add
new health_hs_add
new health_max

new nKiller
new nKiller_hp
new nHp_add
new nHp_max

public plugin_init()
{
   
register_plugin("Vampire"PLUGIN_VERSION"probando")

   
health_add register_cvar("amx_vampire_hp""25")
   
health_hs_add register_cvar("amx_vampire_hp_hs""50")
   
health_max register_cvar("amx_vampire_max_hp""100")

   
register_event("DeathMsg""hook_death""a""1>0")     
}

public 
hook_death()
{
   
// Killer id
   
nKiller read_data(1)

   if ( (
read_data(3) == 1) && (read_data(5) == 0) )
   {
      
nHp_add get_pcvar_num (health_hs_add)
   }
   else
      
nHp_add get_pcvar_num (health_add)

   
nHp_max get_pcvar_num (health_max)

   
// Updating Killer HP
   
nKiller_hp get_user_health(nKiller)
   
nKiller_hp += nHp_add

   
// Maximum HP check
   
if (nKiller_hp nHp_maxnKiller_hp nHp_max

   set_user_health
(nKillernKiller_hp)

   
// Hud message "[Vene-Pro] +25/+50 HP"
   
set_hudmessage(255255255, -1.00.1501.01.00.10.1, -1)
   
show_hudmessage(nKiller"[%d]+hp"nHp_add)

   
// Screen fading
   
message_begin(MSG_ONEget_user_msgid("ScreenFade"), {0,0,0}, nKiller)
   
write_short(1<<10)
   
write_short(1<<10)
   
write_short(0x0000)
   
write_byte(0)
   
write_byte(0)
   
write_byte(200)
   
write_byte(75)
   
message_end()
   


MUCHAS GRACIAS y DISCULPEN MI IGNORACIA <3
Responder
#2
aquí esta para que te de la granada al dar headshot
https://amxmodx-es.com/Thread-Recarga-de-balas-por-frag

TESTEA

Código PHP:
#include <amxmodx>
#include <fakemeta>
#include <hamsandwich>

#define PLUGIN_NAME    "FPD + HSECFG"
#define PLUGIN_VERSION "1.0"
#define PLUGIN_AUTHOR  "Numb/mut2nt (MastaMan Edition)"


new fpd_hsecfg_soundfpd_hsecfg_fadefpd_hsecfg_camera

public plugin_init()
{
    
register_plugin(PLUGIN_NAMEPLUGIN_VERSIONPLUGIN_AUTHOR);
    
    
fpd_hsecfg_sound register_cvar"fpd_hsecfg_sound""0" )
    
fpd_hsecfg_fade register_cvar"fpd_hsecfg_fade""1" )
    
fpd_hsecfg_camera register_cvar"fpd_hsecfg_camera""1" )
    
    
RegisterHam(Ham_Killed"player""killed_player"1);
}

public 
killed_player(id)
{
    if (
get_pcvar_num(fpd_hsecfg_sound))
    {
        
client_cmd(id,"spk fvox/flatline.wav")
    }
    
    if (
get_pcvar_num(fpd_hsecfg_fade))
    {
        
message_begin(MSG_ONE_UNRELIABLE,get_user_msgid("ScreenFade"),{0,0,0},id)
        
write_short10<<12 )
        
write_short10<<16 )
        
write_short1<<)
        
write_byte255 )
        
write_byte20 )
        
write_byte147 )
        
write_byte)
        
message_end()
    }
    
    if (
get_pcvar_num(fpd_hsecfg_camera))
    {
        
set_pev(idpev_iuser10)
        
set_pev(idpev_gravity3.0
        
set_pev(idpev_maxspeed10)
    }


Código PHP:
#include <amxmodx>
#include <fun>

#define PLUGIN_VERSION "1.0c"

new health_add
new health_hs_add
new health_max

new nKiller
new nKiller_hp
new nHp_add
new nHp_max

public plugin_init()
{
   
register_plugin("Vampire"PLUGIN_VERSION"probando")

   
health_add register_cvar("amx_vampire_hp""25")
   
health_hs_add register_cvar("amx_vampire_hp_hs""50")
   
health_max register_cvar("amx_vampire_max_hp""100")

   
register_event("DeathMsg""hook_death""a""1>0")     
}

public 
hook_death()
{
   
// Killer id
   
nKiller read_data(1)

   if ( (
read_data(3) == 1) && (read_data(5) == 0) )
   {
      
nHp_add get_pcvar_num (health_hs_add)
   }
   else
      
nHp_add get_pcvar_num (health_add)

   
nHp_max get_pcvar_num (health_max)

   
// Updating Killer HP
   
nKiller_hp get_user_health(nKiller)
   
nKiller_hp += nHp_add

   
// Maximum HP check
   
if (nKiller_hp nHp_maxnKiller_hp nHp_max

   set_user_health
(nKillernKiller_hp)

   
// Hud message "[Vene-Pro] +25/+50 HP"
   
set_hudmessage(255255255, -1.00.1501.01.00.10.1, -1)
   
show_hudmessage(nKiller"[%d]+hp"nHp_add)

   
// Screen fading
   
message_begin(MSG_ONEget_user_msgid("ScreenFade"), {0,0,0}, nKiller)
   
write_short(1<<10)
   
write_short(1<<10)
   
write_short(0x0000)
   
write_byte(255)
   
write_byte(20)
   
write_byte(147)
   
write_byte(75)
   
message_end()
   

Aprendiendo scripting Excitedeyes || Tratare ayudar en lo que pueda Trolleyes || PD: Soy pobre Cutecry
Responder
#3
(23/09/2019, 01:10 PM)The Editor escribió: Wenas, No tengo mucho que decir solo necesito que me expliquen o alguien si es amable como cambiarle el RGB a este plugins lo quisiera poner color rosado ya que el servidor que estoy editando es de mujeres.

Código PHP:
#include <amxmodx>
#include <fakemeta>
#include <hamsandwich>

#define PLUGIN_NAME    "FPD + HSECFG"
#define PLUGIN_VERSION "1.0"
#define PLUGIN_AUTHOR  "Numb/mut2nt (MastaMan Edition)"


new fpd_hsecfg_soundfpd_hsecfg_fadefpd_hsecfg_camera

public plugin_init()
{
    
register_plugin(PLUGIN_NAMEPLUGIN_VERSIONPLUGIN_AUTHOR);
    
    
fpd_hsecfg_sound register_cvar"fpd_hsecfg_sound""0" )
    
fpd_hsecfg_fade register_cvar"fpd_hsecfg_fade""1" )
    
fpd_hsecfg_camera register_cvar"fpd_hsecfg_camera""1" )
    
    
RegisterHam(Ham_Killed"player""killed_player"1);
}

public 
killed_player(id)
{
    if (
get_pcvar_num(fpd_hsecfg_sound))
    {
        
client_cmd(id,"spk fvox/flatline.wav")
    }
    
    if (
get_pcvar_num(fpd_hsecfg_fade))
    {
        
message_begin(MSG_ONE_UNRELIABLE,get_user_msgid("ScreenFade"),{0,0,0},id)
        
write_short10<<12 )
        
write_short10<<16 )
        
write_short1<<)
        
write_byterandom_num(60255) )
        
write_byte)
        
write_byte)
        
write_byterandom_num(60255) )
        
message_end()
    }
    
    if (
get_pcvar_num(fpd_hsecfg_camera))
    {
        
set_pev(idpev_iuser10)
        
set_pev(idpev_gravity3.0
        
set_pev(idpev_maxspeed10)
    }


Código:
Otro plugins seria que no he conseguido o me he quedado ciego

Uno que cuando mate a una persona de headshot le de una granada al player y vida como el vampire pero el que tengo no da la granada y ponerle el color rosado tambien si se puede les dejo el code para que vean.

Código PHP:
#include <amxmodx>
#include <fun>

#define PLUGIN_VERSION "1.0c"

new health_add
new health_hs_add
new health_max

new nKiller
new nKiller_hp
new nHp_add
new nHp_max

public plugin_init()
{
   
register_plugin("Vampire"PLUGIN_VERSION"probando")

   
health_add register_cvar("amx_vampire_hp""25")
   
health_hs_add register_cvar("amx_vampire_hp_hs""50")
   
health_max register_cvar("amx_vampire_max_hp""100")

   
register_event("DeathMsg""hook_death""a""1>0")     
}

public 
hook_death()
{
   
// Killer id
   
nKiller read_data(1)

   if ( (
read_data(3) == 1) && (read_data(5) == 0) )
   {
      
nHp_add get_pcvar_num (health_hs_add)
   }
   else
      
nHp_add get_pcvar_num (health_add)

   
nHp_max get_pcvar_num (health_max)

   
// Updating Killer HP
   
nKiller_hp get_user_health(nKiller)
   
nKiller_hp += nHp_add

   
// Maximum HP check
   
if (nKiller_hp nHp_maxnKiller_hp nHp_max

   set_user_health
(nKillernKiller_hp)

   
// Hud message "[Vene-Pro] +25/+50 HP"
   
set_hudmessage(255255255, -1.00.1501.01.00.10.1, -1)
   
show_hudmessage(nKiller"[%d]+hp"nHp_add)

   
// Screen fading
   
message_begin(MSG_ONEget_user_msgid("ScreenFade"), {0,0,0}, nKiller)
   
write_short(1<<10)
   
write_short(1<<10)
   
write_short(0x0000)
   
write_byte(0)
   
write_byte(0)
   
write_byte(200)
   
write_byte(75)
   
message_end()
   


MUCHAS GRACIAS y DISCULPEN MI IGNORACIA <3

PROBA :

Código PHP:
#include <amxmodx>
#include <fakemeta>
#include <hamsandwich>

#define PLUGIN_NAME    "FPD + HSECFG"
#define PLUGIN_VERSION "1.0"
#define PLUGIN_AUTHOR  "Numb/mut2nt (MastaMan Edition)"


new fpd_hsecfg_soundfpd_hsecfg_fadefpd_hsecfg_camera

public plugin_init()
{
    
register_plugin(PLUGIN_NAMEPLUGIN_VERSIONPLUGIN_AUTHOR);
    
    
fpd_hsecfg_sound register_cvar"fpd_hsecfg_sound""0" )
    
fpd_hsecfg_fade register_cvar"fpd_hsecfg_fade""1" )
    
fpd_hsecfg_camera register_cvar"fpd_hsecfg_camera""1" )
    
    
RegisterHam(Ham_Killed"player""killed_player"1);
}

public 
killed_player(id)
{
    if (
get_pcvar_num(fpd_hsecfg_sound))
    {
        
client_cmd(id,"spk fvox/flatline.wav")
    }
    
    if (
get_pcvar_num(fpd_hsecfg_fade))
    {
        
message_begin(MSG_ONE_UNRELIABLE,get_user_msgid("ScreenFade"),{0,0,0},id)
        
write_short2024 )
        
write_short2024 )
        
write_short)
        
write_byte255 )
        
write_byte)
        
write_byte255 )
        
write_byte75 )
        
message_end()
    }
    
    if (
get_pcvar_num(fpd_hsecfg_camera))
    {
        
set_pev(idpev_iuser10)
        
set_pev(idpev_gravity3.0
        
set_pev(idpev_maxspeed10)
    }

Código PHP:
section .data
    holaMundo
db '$ Te ayudaré siempre y cuando pueda.!! ❤️!'10
    longitud
equ $ - holaMundo
section 
.text 
Responder


Salto de foro:


Usuarios navegando en este tema: 1 invitado(s)