Mensaje HUD Permanente Parpadeando
#1
Guiño 
Buenas Alguien Me Podria Ayudar Con Este Plugin Quiero Q El Mesanje HUD Diga Evento STEAM Comienza El : 20/07 Culmina EL : 28/07 Pero Parpadeando PLis Ayundenme... Buenas Noches
Responder
#2
Prueba recién horneado

Código PHP:
#include < amxmodx.inc >

public client_putinserver(id) { set_task(1.0"HudPermanente"id__"b"); }
public 
client_disconnect(id) { remove_task(id); }

public 
HudPermanente(const iID)
{
    
set_hudmessage(02552550.30.0416.01.0)
    
show_hudmessage(iID"STEAM Comienza El : 20/07 Culmina EL : 28/07")

Responder
#3
(11/07/2018, 11:13 PM)GeX~ escribió: Prueba recién horneado

Código PHP:
#include < amxmodx.inc >

public client_putinserver(id) { set_task(1.0"HudPermanente"id__"b"); }
public 
client_disconnect(id) { remove_task(id); }

public 
HudPermanente(const iID)
{
    
set_hudmessage(02552550.30.0416.01.0)
    
show_hudmessage(iID"STEAM Comienza El : 20/07 Culmina EL : 28/07")


Trolleyes que carajo es "iiID"? y "#include < amxmodx.inc>" Trolleyes

Toma, hacelo así capo, el otro anda re-mal Roflmao

ASÍ SE HACE UN HUD PERMANENTE:
Código PHP:
Código PHP:
#include <amxmodx>

new SyncHudMsgId;

const 
TASK_ID_HUD 3333;
const 
Float:COOR_HUD_X 0.42;
const 
Float:COOR_HUD_Y 0.41;

public 
plugin_init()
{
    
SyncHudMsgId CreateHudSyncObj(); //SyncHudMsgId para que siempre busque un canal disponible.
    
    
set_task(1.0"HUD_PERMANENT"TASK_ID_HUD__"b"); //Hacemos un TASK con Flag B ( "B" - Bucle infinito hasta que se detenga el task ).
}

public 
HUD_PERMANENT()
{
    
set_hudmessage(02550COOR_HUD_XCOOR_HUD_Y10.01.00.00.5, -1);
    
    
/*
    //En caso que necesites la ID especifica del jugador.
    
    new iPlayers[32], iPlayersNum, i;
    get_players( iPlayers, iPlayersNum, "c" ); // flag C = No incluye bots.
    
    for( i = 0; i <= iPlayersNum; i++ )
    {
        new plr = iPlayers[i];
        
        ShowSyncHudMsg(plr, SyncHudMsgId, "Soy un HUD Permanente");
    }
    */
    
    //Si no, pasamos ID = 0, para que se lo mande a todo el servidor.
    
ShowSyncHudMsg(0SyncHudMsgId"Soy un HUD Permanente");

Responder
#4
Qué es lo que anda 're-mal' del otro código?

   
Steam
Responder
#5
No tiene nada de malo, son formas de codear, cada uno tiene diferentes formas de expresar los includes, las constantes, etc... el código va perfecto.
Responder
#6
(12/07/2018, 12:48 PM)Nazy.- escribió:
(11/07/2018, 11:13 PM)GeX~ escribió: Prueba recién horneado

Código PHP:
#include < amxmodx.inc >

public client_putinserver(id) { set_task(1.0"HudPermanente"id__"b"); }
public 
client_disconnect(id) { remove_task(id); }

public 
HudPermanente(const iID)
{
    
set_hudmessage(02552550.30.0416.01.0)
    
show_hudmessage(iID"STEAM Comienza El : 20/07 Culmina EL : 28/07")


Trolleyes que carajo es "iiID"? y "#include < amxmodx.inc>" Trolleyes

Toma, hacelo así capo, el otro anda re-mal Roflmao

ASÍ SE HACE UN HUD PERMANENTE:
Código PHP:
Código PHP:
#include <amxmodx>

new SyncHudMsgId;

const 
TASK_ID_HUD 3333;
const 
Float:COOR_HUD_X 0.42;
const 
Float:COOR_HUD_Y 0.41;

public 
plugin_init()
{
    
SyncHudMsgId CreateHudSyncObj(); //SyncHudMsgId para que siempre busque un canal disponible.
    
    
set_task(1.0"HUD_PERMANENT"TASK_ID_HUD__"b"); //Hacemos un TASK con Flag B ( "B" - Bucle infinito hasta que se detenga el task ).
}

public 
HUD_PERMANENT()
{
    
set_hudmessage(02550COOR_HUD_XCOOR_HUD_Y10.01.00.00.5, -1);
    
    
/*
    //En caso que necesites la ID especifica del jugador.
    
    new iPlayers[32], iPlayersNum, i;
    get_players( iPlayers, iPlayersNum, "c" ); // flag C = No incluye bots.
    
    for( i = 0; i <= iPlayersNum; i++ )
    {
        new plr = iPlayers[i];
        
        ShowSyncHudMsg(plr, SyncHudMsgId, "Soy un HUD Permanente");
    }
    */
    
    //Si no, pasamos ID = 0, para que se lo mande a todo el servidor.
    
ShowSyncHudMsg(0SyncHudMsgId"Soy un HUD Permanente");


????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????

Responder
#7
(12/07/2018, 03:28 PM)Skylar escribió:
(12/07/2018, 12:48 PM)Nazy.- escribió:
(11/07/2018, 11:13 PM)GeX~ escribió: Prueba recién horneado

Código PHP:
#include < amxmodx.inc >

public client_putinserver(id) { set_task(1.0"HudPermanente"id__"b"); }
public 
client_disconnect(id) { remove_task(id); }

public 
HudPermanente(const iID)
{
    
set_hudmessage(02552550.30.0416.01.0)
    
show_hudmessage(iID"STEAM Comienza El : 20/07 Culmina EL : 28/07")


Trolleyes que carajo es "iiID"? y "#include < amxmodx.inc>" Trolleyes

Toma, hacelo así capo, el otro anda re-mal Roflmao

ASÍ SE HACE UN HUD PERMANENTE:
Código PHP:
Código PHP:
#include <amxmodx>

new SyncHudMsgId;

const 
TASK_ID_HUD 3333;
const 
Float:COOR_HUD_X 0.42;
const 
Float:COOR_HUD_Y 0.41;

public 
plugin_init()
{
    
SyncHudMsgId CreateHudSyncObj(); //SyncHudMsgId para que siempre busque un canal disponible.
    
    
set_task(1.0"HUD_PERMANENT"TASK_ID_HUD__"b"); //Hacemos un TASK con Flag B ( "B" - Bucle infinito hasta que se detenga el task ).
}

public 
HUD_PERMANENT()
{
    
set_hudmessage(02550COOR_HUD_XCOOR_HUD_Y10.01.00.00.5, -1);
    
    
/*
    //En caso que necesites la ID especifica del jugador.
    
    new iPlayers[32], iPlayersNum, i;
    get_players( iPlayers, iPlayersNum, "c" ); // flag C = No incluye bots.
    
    for( i = 0; i <= iPlayersNum; i++ )
    {
        new plr = iPlayers[i];
        
        ShowSyncHudMsg(plr, SyncHudMsgId, "Soy un HUD Permanente");
    }
    */
    
    //Si no, pasamos ID = 0, para que se lo mande a todo el servidor.
    
ShowSyncHudMsg(0SyncHudMsgId"Soy un HUD Permanente");


????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????

Si buenas que se le ofreceeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
Responder
#8
(12/07/2018, 12:48 PM)Nazy.- escribió:
(11/07/2018, 11:13 PM)GeX~ escribió: Prueba recién horneado

Código PHP:
#include < amxmodx.inc >

public client_putinserver(id) { set_task(1.0"HudPermanente"id__"b"); }
public 
client_disconnect(id) { remove_task(id); }

public 
HudPermanente(const iID)
{
    
set_hudmessage(02552550.30.0416.01.0)
    
show_hudmessage(iID"STEAM Comienza El : 20/07 Culmina EL : 28/07")


Trolleyes que carajo es "iiID"? y "#include < amxmodx.inc>" Trolleyes

Toma, hacelo así capo, el otro anda re-mal Roflmao

ASÍ SE HACE UN HUD PERMANENTE:
Código PHP:
Código PHP:
#include <amxmodx>

new SyncHudMsgId;

const 
TASK_ID_HUD 3333;
const 
Float:COOR_HUD_X 0.42;
const 
Float:COOR_HUD_Y 0.41;

public 
plugin_init()
{
    
SyncHudMsgId CreateHudSyncObj(); //SyncHudMsgId para que siempre busque un canal disponible.
    
    
set_task(1.0"HUD_PERMANENT"TASK_ID_HUD__"b"); //Hacemos un TASK con Flag B ( "B" - Bucle infinito hasta que se detenga el task ).
}

public 
HUD_PERMANENT()
{
    
set_hudmessage(02550COOR_HUD_XCOOR_HUD_Y10.01.00.00.5, -1);
    
    
/*
    //En caso que necesites la ID especifica del jugador.
    
    new iPlayers[32], iPlayersNum, i;
    get_players( iPlayers, iPlayersNum, "c" ); // flag C = No incluye bots.
    
    for( i = 0; i <= iPlayersNum; i++ )
    {
        new plr = iPlayers[i];
        
        ShowSyncHudMsg(plr, SyncHudMsgId, "Soy un HUD Permanente");
    }
    */
    
    //Si no, pasamos ID = 0, para que se lo mande a todo el servidor.
    
ShowSyncHudMsg(0SyncHudMsgId"Soy un HUD Permanente");


Algo más nefasto que ser soberbio y novato?
Responder
#9
(12/07/2018, 06:35 PM)meTaLiCroSS escribió:
(12/07/2018, 12:48 PM)Nazy.- escribió:
(11/07/2018, 11:13 PM)GeX~ escribió: Prueba recién horneado

Código PHP:
#include < amxmodx.inc >

public client_putinserver(id) { set_task(1.0"HudPermanente"id__"b"); }
public 
client_disconnect(id) { remove_task(id); }

public 
HudPermanente(const iID)
{
    
set_hudmessage(02552550.30.0416.01.0)
    
show_hudmessage(iID"STEAM Comienza El : 20/07 Culmina EL : 28/07")


Trolleyes que carajo es "iiID"? y "#include < amxmodx.inc>" Trolleyes

Toma, hacelo así capo, el otro anda re-mal Roflmao

ASÍ SE HACE UN HUD PERMANENTE:
Código PHP:
Código PHP:
#include <amxmodx>

new SyncHudMsgId;

const 
TASK_ID_HUD 3333;
const 
Float:COOR_HUD_X 0.42;
const 
Float:COOR_HUD_Y 0.41;

public 
plugin_init()
{
    
SyncHudMsgId CreateHudSyncObj(); //SyncHudMsgId para que siempre busque un canal disponible.
    
    
set_task(1.0"HUD_PERMANENT"TASK_ID_HUD__"b"); //Hacemos un TASK con Flag B ( "B" - Bucle infinito hasta que se detenga el task ).
}

public 
HUD_PERMANENT()
{
    
set_hudmessage(02550COOR_HUD_XCOOR_HUD_Y10.01.00.00.5, -1);
    
    
/*
    //En caso que necesites la ID especifica del jugador.
    
    new iPlayers[32], iPlayersNum, i;
    get_players( iPlayers, iPlayersNum, "c" ); // flag C = No incluye bots.
    
    for( i = 0; i <= iPlayersNum; i++ )
    {
        new plr = iPlayers[i];
        
        ShowSyncHudMsg(plr, SyncHudMsgId, "Soy un HUD Permanente");
    }
    */
    
    //Si no, pasamos ID = 0, para que se lo mande a todo el servidor.
    
ShowSyncHudMsg(0SyncHudMsgId"Soy un HUD Permanente");


Algo más nefasto que ser soberbio y novato?

SI, que hagas un plugin y te de error pacman

(12/07/2018, 06:35 PM)meTaLiCroSS escribió:
(12/07/2018, 12:48 PM)Nazy.- escribió:
(11/07/2018, 11:13 PM)GeX~ escribió: Prueba recién horneado

Código PHP:
#include < amxmodx.inc >

public client_putinserver(id) { set_task(1.0"HudPermanente"id__"b"); }
public 
client_disconnect(id) { remove_task(id); }

public 
HudPermanente(const iID)
{
    
set_hudmessage(02552550.30.0416.01.0)
    
show_hudmessage(iID"STEAM Comienza El : 20/07 Culmina EL : 28/07")


Trolleyes que carajo es "iiID"? y "#include < amxmodx.inc>" Trolleyes

Toma, hacelo así capo, el otro anda re-mal Roflmao

ASÍ SE HACE UN HUD PERMANENTE:
Código PHP:
Código PHP:
#include <amxmodx>

new SyncHudMsgId;

const 
TASK_ID_HUD 3333;
const 
Float:COOR_HUD_X 0.42;
const 
Float:COOR_HUD_Y 0.41;

public 
plugin_init()
{
    
SyncHudMsgId CreateHudSyncObj(); //SyncHudMsgId para que siempre busque un canal disponible.
    
    
set_task(1.0"HUD_PERMANENT"TASK_ID_HUD__"b"); //Hacemos un TASK con Flag B ( "B" - Bucle infinito hasta que se detenga el task ).
}

public 
HUD_PERMANENT()
{
    
set_hudmessage(02550COOR_HUD_XCOOR_HUD_Y10.01.00.00.5, -1);
    
    
/*
    //En caso que necesites la ID especifica del jugador.
    
    new iPlayers[32], iPlayersNum, i;
    get_players( iPlayers, iPlayersNum, "c" ); // flag C = No incluye bots.
    
    for( i = 0; i <= iPlayersNum; i++ )
    {
        new plr = iPlayers[i];
        
        ShowSyncHudMsg(plr, SyncHudMsgId, "Soy un HUD Permanente");
    }
    */
    
    //Si no, pasamos ID = 0, para que se lo mande a todo el servidor.
    
ShowSyncHudMsg(0SyncHudMsgId"Soy un HUD Permanente");


Algo más nefasto que ser soberbio y novato?

SI, que hagas un plugin y te de error pacman

(12/07/2018, 06:35 PM)meTaLiCroSS escribió:
(12/07/2018, 12:48 PM)Nazy.- escribió:
(11/07/2018, 11:13 PM)GeX~ escribió: Prueba recién horneado

Código PHP:
#include < amxmodx.inc >

public client_putinserver(id) { set_task(1.0"HudPermanente"id__"b"); }
public 
client_disconnect(id) { remove_task(id); }

public 
HudPermanente(const iID)
{
    
set_hudmessage(02552550.30.0416.01.0)
    
show_hudmessage(iID"STEAM Comienza El : 20/07 Culmina EL : 28/07")


Trolleyes que carajo es "iiID"? y "#include < amxmodx.inc>" Trolleyes

Toma, hacelo así capo, el otro anda re-mal Roflmao

ASÍ SE HACE UN HUD PERMANENTE:
Código PHP:
Código PHP:
#include <amxmodx>

new SyncHudMsgId;

const 
TASK_ID_HUD 3333;
const 
Float:COOR_HUD_X 0.42;
const 
Float:COOR_HUD_Y 0.41;

public 
plugin_init()
{
    
SyncHudMsgId CreateHudSyncObj(); //SyncHudMsgId para que siempre busque un canal disponible.
    
    
set_task(1.0"HUD_PERMANENT"TASK_ID_HUD__"b"); //Hacemos un TASK con Flag B ( "B" - Bucle infinito hasta que se detenga el task ).
}

public 
HUD_PERMANENT()
{
    
set_hudmessage(02550COOR_HUD_XCOOR_HUD_Y10.01.00.00.5, -1);
    
    
/*
    //En caso que necesites la ID especifica del jugador.
    
    new iPlayers[32], iPlayersNum, i;
    get_players( iPlayers, iPlayersNum, "c" ); // flag C = No incluye bots.
    
    for( i = 0; i <= iPlayersNum; i++ )
    {
        new plr = iPlayers[i];
        
        ShowSyncHudMsg(plr, SyncHudMsgId, "Soy un HUD Permanente");
    }
    */
    
    //Si no, pasamos ID = 0, para que se lo mande a todo el servidor.
    
ShowSyncHudMsg(0SyncHudMsgId"Soy un HUD Permanente");


Algo más nefasto que ser soberbio y novato?

SI, que hagas un plugin y te de error pacman
Responder
#10
(12/07/2018, 12:48 PM)Nazy.- escribió:
(11/07/2018, 11:13 PM)GeX~ escribió: Prueba recién horneado

Código PHP:
#include < amxmodx.inc >

public client_putinserver(id) { set_task(1.0"HudPermanente"id__"b"); }
public 
client_disconnect(id) { remove_task(id); }

public 
HudPermanente(const iID)
{
    
set_hudmessage(02552550.30.0416.01.0)
    
show_hudmessage(iID"STEAM Comienza El : 20/07 Culmina EL : 28/07")


Trolleyes que carajo es "iiID"? y "#include < amxmodx.inc>" Trolleyes

Toma, hacelo así capo, el otro anda re-mal Roflmao

ASÍ SE HACE UN HUD PERMANENTE:
Código PHP:
Código PHP:
#include <amxmodx>

new SyncHudMsgId;

const 
TASK_ID_HUD 3333;
const 
Float:COOR_HUD_X 0.42;
const 
Float:COOR_HUD_Y 0.41;

public 
plugin_init()
{
    
SyncHudMsgId CreateHudSyncObj(); //SyncHudMsgId para que siempre busque un canal disponible.
    
    
set_task(1.0"HUD_PERMANENT"TASK_ID_HUD__"b"); //Hacemos un TASK con Flag B ( "B" - Bucle infinito hasta que se detenga el task ).
}

public 
HUD_PERMANENT()
{
    
set_hudmessage(02550COOR_HUD_XCOOR_HUD_Y10.01.00.00.5, -1);
    
    
/*
    //En caso que necesites la ID especifica del jugador.
    
    new iPlayers[32], iPlayersNum, i;
    get_players( iPlayers, iPlayersNum, "c" ); // flag C = No incluye bots.
    
    for( i = 0; i <= iPlayersNum; i++ )
    {
        new plr = iPlayers[i];
        
        ShowSyncHudMsg(plr, SyncHudMsgId, "Soy un HUD Permanente");
    }
    */
    
    //Si no, pasamos ID = 0, para que se lo mande a todo el servidor.
    
ShowSyncHudMsg(0SyncHudMsgId"Soy un HUD Permanente");


el plugin de gex anda perfecto tu parece que eres el tipo que no prueba antes de comentar.
Trolleyes
Responder
#11
(12/07/2018, 06:35 PM)meTaLiCroSS escribió:
(12/07/2018, 12:48 PM)Nazy.- escribió:
(11/07/2018, 11:13 PM)GeX~ escribió: Prueba recién horneado

Código PHP:
#include < amxmodx.inc >

public client_putinserver(id) { set_task(1.0"HudPermanente"id__"b"); }
public 
client_disconnect(id) { remove_task(id); }

public 
HudPermanente(const iID)
{
    
set_hudmessage(02552550.30.0416.01.0)
    
show_hudmessage(iID"STEAM Comienza El : 20/07 Culmina EL : 28/07")


Trolleyes que carajo es "iiID"? y "#include < amxmodx.inc>" Trolleyes

Toma, hacelo así capo, el otro anda re-mal Roflmao

ASÍ SE HACE UN HUD PERMANENTE:
Código PHP:
Código PHP:
#include <amxmodx>

new SyncHudMsgId;

const 
TASK_ID_HUD 3333;
const 
Float:COOR_HUD_X 0.42;
const 
Float:COOR_HUD_Y 0.41;

public 
plugin_init()
{
    
SyncHudMsgId CreateHudSyncObj(); //SyncHudMsgId para que siempre busque un canal disponible.
    
    
set_task(1.0"HUD_PERMANENT"TASK_ID_HUD__"b"); //Hacemos un TASK con Flag B ( "B" - Bucle infinito hasta que se detenga el task ).
}

public 
HUD_PERMANENT()
{
    
set_hudmessage(02550COOR_HUD_XCOOR_HUD_Y10.01.00.00.5, -1);
    
    
/*
    //En caso que necesites la ID especifica del jugador.
    
    new iPlayers[32], iPlayersNum, i;
    get_players( iPlayers, iPlayersNum, "c" ); // flag C = No incluye bots.
    
    for( i = 0; i <= iPlayersNum; i++ )
    {
        new plr = iPlayers[i];
        
        ShowSyncHudMsg(plr, SyncHudMsgId, "Soy un HUD Permanente");
    }
    */
    
    //Si no, pasamos ID = 0, para que se lo mande a todo el servidor.
    
ShowSyncHudMsg(0SyncHudMsgId"Soy un HUD Permanente");


Algo más nefasto que ser soberbio y novato?
Cuando creías verlo todo, solamente hizo C&P literal del mensaje de hud.

https://amxmodx-es.com/Thread-Mensajes-H...#pid127103
Responder


Salto de foro:


Usuarios navegando en este tema: 1 invitado(s)