Vampire Color Rojo
#1
Holaaa! estoy tratando de encontrar un vampire pero de color rojo pero solo es color azul
Si alguien me hace el favor de encontrarlo gracias!
Responder
#2
Saludos. Crab
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""40")
   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 "Healed +15/+40 hp"
   set_hudmessage(02550, -1.00.1501.01.00.10.1, -1)
   show_hudmessage(nKiller"Recibes +%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(0)
   write_byte(0)
   write_byte(75)
   message_end()
   

Responder
#3
Graciasss! Oye y como le pongo el color que yo quiera bro!!? ya se que es por rgb pero como
Lo cambio
Responder
#4
(12/05/2021, 11:15 AM)HyPeR ツ escribió: Graciasss! Oye y como le pongo el color que yo quiera bro!!? ya se que es por rgb pero como
Lo cambio

Código PHP:
// 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// R
write_byte(0// G
write_byte(0// B
write_byte(75)
message_end() 
Responder
#5
Gracias y sabes como ponerlo por team? azull ct y rojo ct
Responder
#6
Agrega esto después de amxmodx
Código PHP:
#include <cstrike> 

y usa este codigo
Código PHP:
new iColor[3]

if(
cs_get_user_team(nKiller) == CS_TEAM_CT)
    
iColor = {25500// RGB
else if(cs_get_user_team(nKiller) == CS_TEAM_T)
    
iColor = {02550// RGB

// 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(iColor[0]) // R
write_byte(iColor[1]) // G
write_byte(iColor[2]) // B
write_byte(75)
message_end() 
Responder
#7
osea hago otro plugin nuevo?
Responder
#8
(12/05/2021, 12:28 PM)HyPeR ツ escribió: osea hago otro plugin nuevo?

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 <cstrike> 
#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""40")
   
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 "Healed +15/+40 hp"
   
set_hudmessage(02550, -1.00.1501.01.00.10.1, -1)
   
show_hudmessage(nKiller"Recibes +%d Hp"nHp_add)

   new 
iColor[3]

    if(
cs_get_user_team(nKiller) == CS_TEAM_CT)
        
iColor = {00155// RGB
    
else if(cs_get_user_team(nKiller) == CS_TEAM_T)
        
iColor = {15500// RGB

    // 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(iColor[0]) // R
    
write_byte(iColor[1]) // G
    
write_byte(iColor[2]) // B
    
write_byte(75)
    
message_end() 

Responder
#9
Bro tienes face ? para hablar de unas cosas que nesecito como tu sabes de plugins y yo no xD

Bro tienes face ? para que me ayudes nesecito a alguien :c
Responder


Salto de foro:


Usuarios navegando en este tema: 1 invitado(s)