cambiar el color de azul a rojo
#1
buenas como le puedo cambiar el color que sale al matar por uno rojo

Código PHP:
/*
*   http://games.qwerty.ru
*
*    AmxModX
*   Vampire plugin
*    by Shalfey
*
*   CVars
*   amx_vampire_hp - hp add for kill
*   amx_vampire_hp_hs - hp add for kill in head
*   amx_vampire_max_hp - max player hp
*
*   Players gets HP for kills.
*/
#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"Shalfey")

   
health_add register_cvar("amx_vampire_hp""15")
   
health_hs_add register_cvar("amx_vampire_hp_hs""25")
   
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)

   
// 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()
   

Aprendiendo scripting Excitedeyes || Tratare ayudar en lo que pueda Trolleyes || PD: Soy pobre Cutecry
Responder
#2
Cambia esto

Código PHP:
write_byte(0)
write_byte(200)
write_byte(75

por esto
Código PHP:
write_byte(247)
write_byte(35)
write_byte(4
* Ing. Informático * Mapper * Venezolano
Responder
#3
Código PHP:
/*
*   http://games.qwerty.ru
*
*    AmxModX
*   Vampire plugin
*    by Shalfey
*
*   CVars
*   amx_vampire_hp - hp add for kill
*   amx_vampire_hp_hs - hp add for kill in head
*   amx_vampire_max_hp - max player hp
*
*   Players gets HP for kills.
*/
#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"Shalfey")

   
health_add register_cvar("amx_vampire_hp""15")
   
health_hs_add register_cvar("amx_vampire_hp_hs""25")
   
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)

   
// 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// Red
   
write_byte(0// Green
   
write_byte(200// Blue
   
write_byte(75)
   
message_end()
   


Si queres rojo pones
Código PHP:
write_byte200 // Red
   
write_byte// Green
   
write_byte0// Blue 

EL QUE SABE SABE, EL QUE NO ES JEFE Mario
Responder
#4
(24/01/2019, 06:41 PM)Deev escribió:
Código PHP:
/*
*   http://games.qwerty.ru
*
*    AmxModX
*   Vampire plugin
*    by Shalfey
*
*   CVars
*   amx_vampire_hp - hp add for kill
*   amx_vampire_hp_hs - hp add for kill in head
*   amx_vampire_max_hp - max player hp
*
*   Players gets HP for kills.
*/
#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"Shalfey")

   
health_add register_cvar("amx_vampire_hp""15")
   
health_hs_add register_cvar("amx_vampire_hp_hs""25")
   
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)

   
// 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// Red
   
write_byte(0// Green
   
write_byte(200// Blue
   
write_byte(75)
   
message_end()
   


Si queres rojo pones
Código PHP:
write_byte200 // Red
   
write_byte// Green
   
write_byte0// Blue 

gracias
Aprendiendo scripting Excitedeyes || Tratare ayudar en lo que pueda Trolleyes || PD: Soy pobre Cutecry
Responder


Salto de foro:


Usuarios navegando en este tema: 1 invitado(s)