HUD Nivel Rango Otros!
#1
Estrella 
ExcitedeyesExcitedeyes Hola Amigos! Gran sonrisa Nesesito Su ayudita Pls Pls Bueno! Me explico = Como veen en el Titulo nesesito Un HUD Pls Bueno antes de EMPESAR voy a explicar un poco de que se trata! bueno: Hace un Tiempo Habia Pedido este Plugin Y Me Funciono Y Todo "Pero" Yo en el Titulo anterior habia dicho que incluyeran los niveles y el hud y solo me hicieron el hud :/ y Hoy vengo con Un Pedido! Bueno Haora Dire de que lo quiero Pls Pls
________________________________________________________________________
Bien Gente Nesesito Un Plugin que Tenga Un HUD con Niveles =, Rangos = , EXP =
Hora (Ejemplo) Hora : 3:25 Bueno Ese es el HUD Pero Haora Nesesito que incluya los niveles la hora rangos exp etc. osea que Puedas Subir de Nivel, que Puedas Veer tu rango e subir a otro, la hora cambie cada 1 minuto osea (3:25 3:26) Eso Seria PLS PLS
Responder
#2
Código PHP:
#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"

#define level_up(%1) (%1 * %1 * 10)

new g_level[33]
new 
g_exp[33]
new 
g_rangos[33]

enum _:Info_Rangos 

    
RangosName[33], 
    
RangosNivel
}

new const 
Rangos[][Info_Rangos] = {
    { 
"Rango 1"1},
    { 
"Rango 2"2},
    { 
"Rango 3"3},
    { 
"Rango 4"4},
    { 
"Rango 5"5}
}

public 
plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
RegisterHam(Ham_Killed"player""fw_playerkilled_post"1)
}

public 
client_putinserver(id)
{
    
set_task(2.0,"hud_",id,_,_,"b")
}

public 
hud(id)
{
    new 
CurrentTime[9
    
get_time("%H:%M:%S",CurrentTime,8
    
set_hudmessage(255000.00.006.012.0)
    
show_hudmessage(id"Nivel : %d^nRango : %s^nExperiencia : %d^nHora : %s"g_level[id], Rangos[g_rangos[id]][RangosName], g_exp[id], CurrentTime)
    
}

public 
fw_playerkilled_post(victimattacker)
{
    if(!
is_user_connected(attacker))
        return 
HAM_IGNORED;
    
    if(
victim == attacker)
        return 
HAM_IGNORED;
        
    
g_exp[attacker] += 10
    level
(attacker)
    return 
HAM_IGNORED;
}

public 
level(id)
{
    while(
g_exp[id] >= level_up(g_level[id]) && g_level[id] < 100)
    {
        
g_level[id]++
        
ChatColor(id"!g[AMX] !ySubiste al nivel %d"g_level[id])
        
rangos(id)
    }
}

public 
rangos(id)
{
    if (
g_level[id] >= Rangos[g_rangos[id] + 1][RangosNivel] && g_rangos[id] < 9)
    {
        
g_rangos[id]++
        
ChatColor(id"!g[AMX] !ySubiste al rango !g%s"Rangos[g_rangos[id]][RangosName])
    }
}

stock ChatColor(const id, const input[], any:...)
{
    new 
count 1players[32]
    static 
msg[191]
    
vformat(msg190input3)
    
    
replace_all(msg190"!g""^4"// Green Color
    
replace_all(msg190"!y""^1"// Default Color
    
replace_all(msg190"!team""^3"// Team Color
    
replace_all(msg190"!team2""^0"// Team2 Color
    
    
if (idplayers[0] = id; else get_players(playerscount"ch")
    {
        for (new 
0counti++)
        {
            if (
is_user_connected(players[i]))
            {
                
message_begin(MSG_ONE_UNRELIABLEget_user_msgid("SayText"), _players[i])
                
write_byte(players[i]);
                
write_string(msg);
                
message_end();
            }
        }
    }


SE ME OLVIDO LOS CREDITOS A :
SISTEMA DE NIVELES
SISTEMA DE RANGOS
COLOR CHAT
“Quien te quiere en su vida, volverá a buscarte”
Qué frase más estúpida
Porque quien te quiere en su vida, jamás se iría.
Responder
#3
No Funciono Triste( Recuerdo q es para cs 1.6 Pls Pls Su ayuda
___________________________________
Soy Nub
Responder
#4
SOLUCIONADO
Código PHP:
#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"

#define level_up(%1) (%1 * %1 * 10)

new g_level[33]
new 
g_exp[33]
new 
g_rangos[33]

enum _:Info_Rangos 

    
RangosName[33], 
    
RangosNivel
}

new const 
Rangos[][Info_Rangos] = {
    { 
"Rango 1"1},
    { 
"Rango 2"2},
    { 
"Rango 3"3},
    { 
"Rango 4"4},
    { 
"Rango 5"5}
}

public 
plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)

    
RegisterHam(Ham_Killed"player""fw_playerkilled_post"1)
}

public 
client_putinserver(id)
{
    
set_task(2.0,"hud",id,_,_,"b")
}

public 
hud(id)
{
    new 
CurrentTime[9
    
get_time("%H:%M:%S",CurrentTime,8
    
set_hudmessage(255000.00.006.012.0)
    
show_hudmessage(id"Nivel : %d^nRango : %s^nExperiencia : %d^nHora : %s"g_level[id], Rangos[g_rangos[id]][RangosName], g_exp[id], CurrentTime)

}

public 
fw_playerkilled_post(victimattacker)
{
if(!
is_user_connected(attacker))
    return 
HAM_IGNORED;
    
    if(
victim == attacker)
        return 
HAM_IGNORED;
    
    
g_exp[attacker] += 10
    level
(attacker)
    return 
HAM_IGNORED;
}

public 
level(id)
{
    while(
g_exp[id] >= level_up(g_level[id]) && g_level[id] < 100)
    {
        
g_level[id]++
        
ChatColor(id"!g[AMX] !ySubiste al nivel %d"g_level[id])
        
rangos(id)
    }
}

public 
rangos(id)
{
    if (
g_level[id] >= Rangos[g_rangos[id] + 1][RangosNivel] && g_rangos[id] < 9)
    {
        
g_rangos[id]++
        
ChatColor(id"!g[AMX] !ySubiste al rango !g%s"Rangos[g_rangos[id]][RangosName])
    }
}

stock ChatColor(const id, const input[], any:...)
{
    new 
count 1players[32]
    static 
msg[191]
    
vformat(msg190input3)
    
    
replace_all(msg190"!g""^4"// Green Color
    
replace_all(msg190"!y""^1"// Default Color
    
replace_all(msg190"!team""^3"// Team Color
    
replace_all(msg190"!team2""^0"// Team2 Color
    
    
if (idplayers[0] = id; else get_players(playerscount"ch")
{
    for (new 
0counti++)
    {
        if (
is_user_connected(players[i]))
        {
            
message_begin(MSG_ONE_UNRELIABLEget_user_msgid("SayText"), _players[i])
            
write_byte(players[i]);
            
write_string(msg);
            
message_end();
        }
    }
}

“Quien te quiere en su vida, volverá a buscarte”
Qué frase más estúpida
Porque quien te quiere en su vida, jamás se iría.
Responder
#5
(11/12/2015, 06:06 PM)HK-416 escribió: SOLUCIONADO
Código PHP:
#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"

#define level_up(%1) (%1 * %1 * 10)

new g_level[33]
new 
g_exp[33]
new 
g_rangos[33]

enum _:Info_Rangos 

    
RangosName[33], 
    
RangosNivel
}

new const 
Rangos[][Info_Rangos] = {
    { 
"Rango 1"1},
    { 
"Rango 2"2},
    { 
"Rango 3"3},
    { 
"Rango 4"4},
    { 
"Rango 5"5}
}

public 
plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)

    
RegisterHam(Ham_Killed"player""fw_playerkilled_post"1)
}

public 
client_putinserver(id)
{
    
set_task(2.0,"hud",id,_,_,"b")
}

public 
hud(id)
{
    new 
CurrentTime[9
    
get_time("%H:%M:%S",CurrentTime,8
    
set_hudmessage(255000.00.006.012.0)
    
show_hudmessage(id"Nivel : %d^nRango : %s^nExperiencia : %d^nHora : %s"g_level[id], Rangos[g_rangos[id]][RangosName], g_exp[id], CurrentTime)

}

public 
fw_playerkilled_post(victimattacker)
{
if(!
is_user_connected(attacker))
    return 
HAM_IGNORED;
    
    if(
victim == attacker)
        return 
HAM_IGNORED;
    
    
g_exp[attacker] += 10
    level
(attacker)
    return 
HAM_IGNORED;
}

public 
level(id)
{
    while(
g_exp[id] >= level_up(g_level[id]) && g_level[id] < 100)
    {
        
g_level[id]++
        
ChatColor(id"!g[AMX] !ySubiste al nivel %d"g_level[id])
        
rangos(id)
    }
}

public 
rangos(id)
{
    if (
g_level[id] >= Rangos[g_rangos[id] + 1][RangosNivel] && g_rangos[id] < 9)
    {
        
g_rangos[id]++
        
ChatColor(id"!g[AMX] !ySubiste al rango !g%s"Rangos[g_rangos[id]][RangosName])
    }
}

stock ChatColor(const id, const input[], any:...)
{
    new 
count 1players[32]
    static 
msg[191]
    
vformat(msg190input3)
    
    
replace_all(msg190"!g""^4"// Green Color
    
replace_all(msg190"!y""^1"// Default Color
    
replace_all(msg190"!team""^3"// Team Color
    
replace_all(msg190"!team2""^0"// Team2 Color
    
    
if (idplayers[0] = id; else get_players(playerscount"ch")
{
    for (new 
0counti++)
    {
        if (
is_user_connected(players[i]))
        {
            
message_begin(MSG_ONE_UNRELIABLEget_user_msgid("SayText"), _players[i])
            
write_byte(players[i]);
            
write_string(msg);
            
message_end();
        }
    }
}


A ese mismo hud se le Podría agregar Las banderas Capturadas y Recuperadas del equipo amigo?.
La paciencia es un árbol de raíces amargas pero de frutos dulces Lml
Responder


Salto de foro:


Usuarios navegando en este tema: 1 invitado(s)