23/09/2019, 01:10 PM
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.
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.
MUCHAS GRACIAS y DISCULPEN MI IGNORACIA <3
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_sound, fpd_hsecfg_fade, fpd_hsecfg_camera
public plugin_init()
{
register_plugin(PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_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_short( 10<<12 )
write_short( 10<<16 )
write_short( 1<<1 )
write_byte( random_num(60, 255) )
write_byte( 0 )
write_byte( 0 )
write_byte( random_num(60, 255) )
message_end()
}
if (get_pcvar_num(fpd_hsecfg_camera))
{
set_pev(id, pev_iuser1, 0)
set_pev(id, pev_gravity, 3.0)
set_pev(id, pev_maxspeed, 10)
}
}
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_max) nKiller_hp = nHp_max
set_user_health(nKiller, nKiller_hp)
// Hud message "[Vene-Pro] +25/+50 HP"
set_hudmessage(255, 255, 255, -1.0, 0.15, 0, 1.0, 1.0, 0.1, 0.1, -1)
show_hudmessage(nKiller, "[%d]+hp", nHp_add)
// Screen fading
message_begin(MSG_ONE, get_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