ZP SCORE
#1
Arcoiris 
¿Como están gente?, acá les aportó un ZP score para sus Zombie Plague
Este es mi primer aporté, aviso este plugin no es mió

[Imagen: U739x8r.png]

Código PHP:
#include <amxmodx>
#include <engine>
#include <zombieplague>

#define PLUGIN "[ZP] Team win score"
#define VERSION "1.3"
#define AUTHOR "Ryokin"

new g_zombiescoreg_humanscoreg_NoOneWing_hudcolor,g_hudposition g_hudmsg

public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_think("msg","ForwardThink")
    
register_event("TextMsg""RestartRound""a""2&#Game_C""2&#Game_w")
    
g_NoOneWin register_cvar"zp_winnoone_score""1")
    
g_hudcolor register_cvar"zp_teamscore_hudcolor""255 25 0")
    
g_hudposition register_cvar"zp_teamscore_hudposition""-1.0 0.02")
    
g_hudmsg CreateHudSyncObj()
    new 
iEnt create_entity("info_target")
    
entity_set_string(iEntEV_SZ_classname"msg")
    
entity_set_float(iEntEV_FL_nextthinkget_gametime() + 2.0)
}

public 
zp_round_ended(team)
{
    switch(
team)
    {
        case 
WIN_ZOMBIESg_zombiescore ++ 
        
        case 
WIN_HUMANSg_humanscore ++ 
        
        case 
WIN_NO_ONE
            if (
get_pcvar_num(g_NoOneWin))
                
g_humanscore ++
    }
}

public 
ForwardThink(iEnt)
{
    
show_hud()
        entity_set_float(iEntEV_FL_nextthinkget_gametime() + 2.0)
}

public 
show_hud()
{
    static 
hud_red,hud_green,hud_blueFloat:hud_xFloat:hud_y

    hudmsgcolor
(hud_red,hud_green,hud_blue)
    
hudmsgpos(hud_x,hud_y)

    
set_hudmessage(hud_redhud_greenhud_bluehud_xhud_y__4.0__4)
    
ShowSyncHudMsg(0g_hudmsg"[Zombie] - [Human]^n[%s%d] -- [%s%d]",g_zombiescore >= 10 "" "0",g_zombiescore,g_humanscore >= 10 "" "0"g_humanscore )
}

public 
RestartRound()
{
    
g_zombiescore 0
    g_humanscore 
0
}

public 
hudmsgcolor(&hud_red,&hud_green,&hud_blue)
{
    new 
color[16], red[4], green[4], blue[4]
    
get_pcvar_string(g_hudcolorcolor15)
    
parse(colorred3green3blue3)
        
    
hud_red str_to_num(red)
    
hud_green str_to_num(green)
    
hud_blue str_to_num(blue)
}

public 
hudmsgpos(&Float:hud_x,&Float:hud_y)
{
    new 
Position[19], PositionX[6], PositionY[6]
    
get_pcvar_string(g_hudpositionPosition18)
    
parse(PositionPositionX6PositionY6)
    
    
hud_x str_to_float(PositionX)
    
hud_y str_to_float(PositionY)


Saludos  Mario
Responder
#2
La imagen que etiquetaste no se ve...

Corrige el link.

Código PHP:
#define PLUGIN "[ZP] Team win score"
#define VERSION "1.3"
#define AUTHOR "Ryokin" 

Insecure epa...

Ya hay varios así en el foro...

https://amxmodx-es.com/Thread-Estad%C3%ADsticas-CT-Y-TT

Hubiera mas o menos un aporte si le hubieras puesto mas cosas (ejemplo: sound o imágenes). Ademas ten en cuenta lo de los autores, sino te van a caer como enjambre aquí.

Corrige lo... y mejoralo.
Responder
#3
Pues está bien man, nada más revisa que lo que aportes no este aportado ya.


gracias de igual manera.
[Imagen: zcsztw-4.png] [Imagen: 6u5fj2-4.png]
[Imagen: linkedin_thumb_image.png][Imagen: 76561198283253977.png][Imagen: linkedin_thumb_image.png]
Responder
#4
(27/07/2020, 12:56 PM)El pirucho XP-007 escribió: La imagen que etiquetaste no se ve...

Corrige el link.

Código PHP:
#define PLUGIN "[ZP] Team win score"
#define VERSION "1.3"
#define AUTHOR "Ryokin" 

Insecure epa...

Ya hay varios así en el foro...

https://amxmodx-es.com/Thread-Estad%C3%ADsticas-CT-Y-TT

Hubiera mas o menos un aporte si le hubieras puesto mas cosas (ejemplo: sound o imágenes). Ademas ten en cuenta lo de los autores, sino te van a caer como enjambre aquí.

Corrige lo... y mejoralo.
Disculpa, no sabía que ya existía uno, de igual manera lo mejoró y lo aportó
Responder


Salto de foro:


Usuarios navegando en este tema: 1 invitado(s)