Mensajes: 13
Temas: 9
Registro en: Dec 2017
Reputación:
0
11/07/2018, 10:55 PM
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
Mensajes: 321
Temas: 71
Registro en: Jan 2016
Reputación:
0
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(0, 255, 255, 0.3, 0.04, 1, 6.0, 1.0) show_hudmessage(iID, "STEAM Comienza El : 20/07 Culmina EL : 28/07") }
Mensajes: 546
Temas: 83
Registro en: Mar 2018
Reputación:
9
12/07/2018, 12:48 PM
(Última modificación: 12/07/2018, 12:49 PM por Nazy.-.)
(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(0, 255, 255, 0.3, 0.04, 1, 6.0, 1.0) show_hudmessage(iID, "STEAM Comienza El : 20/07 Culmina EL : 28/07") }
que carajo es "iiID"? y "#include < amxmodx.inc>"
Toma, hacelo así capo, el otro anda re-mal
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(0, 255, 0, COOR_HUD_X, COOR_HUD_Y, 1, 0.0, 1.0, 0.0, 0.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(0, SyncHudMsgId, "Soy un HUD Permanente"); }
Mensajes: 586
Temas: 15
Registro en: Jul 2017
Reputación:
6
12/07/2018, 01:08 PM
(Última modificación: 12/07/2018, 01:08 PM por Pablo_1998.)
Qué es lo que anda 're-mal' del otro código?
Mensajes: 1,450
Temas: 59
Registro en: Feb 2015
Reputación:
20
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.
Mensajes: 3,238
Temas: 47
Registro en: Feb 2015
Reputación:
34
12/07/2018, 03:28 PM
(Última modificación: 12/07/2018, 03:28 PM por Skylar.)
(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(0, 255, 255, 0.3, 0.04, 1, 6.0, 1.0) show_hudmessage(iID, "STEAM Comienza El : 20/07 Culmina EL : 28/07") }
que carajo es "iiID"? y "#include < amxmodx.inc>"
Toma, hacelo así capo, el otro anda re-mal
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(0, 255, 0, COOR_HUD_X, COOR_HUD_Y, 1, 0.0, 1.0, 0.0, 0.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(0, SyncHudMsgId, "Soy un HUD Permanente"); }
????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????
Mensajes: 546
Temas: 83
Registro en: Mar 2018
Reputación:
9
(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(0, 255, 255, 0.3, 0.04, 1, 6.0, 1.0) show_hudmessage(iID, "STEAM Comienza El : 20/07 Culmina EL : 28/07") }
que carajo es "iiID"? y "#include < amxmodx.inc>"
Toma, hacelo así capo, el otro anda re-mal
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(0, 255, 0, COOR_HUD_X, COOR_HUD_Y, 1, 0.0, 1.0, 0.0, 0.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(0, SyncHudMsgId, "Soy un HUD Permanente"); }
????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????
Si buenas que se le ofreceeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
Mensajes: 3,466
Temas: 18
Registro en: Oct 2013
Reputación:
54
(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(0, 255, 255, 0.3, 0.04, 1, 6.0, 1.0) show_hudmessage(iID, "STEAM Comienza El : 20/07 Culmina EL : 28/07") }
que carajo es "iiID"? y "#include < amxmodx.inc>"
Toma, hacelo así capo, el otro anda re-mal
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(0, 255, 0, COOR_HUD_X, COOR_HUD_Y, 1, 0.0, 1.0, 0.0, 0.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(0, SyncHudMsgId, "Soy un HUD Permanente"); }
Algo más nefasto que ser soberbio y novato?
Mensajes: 546
Temas: 83
Registro en: Mar 2018
Reputación:
9
13/07/2018, 08:09 AM
(Última modificación: 13/07/2018, 08:10 AM por Nazy.-.)
(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(0, 255, 255, 0.3, 0.04, 1, 6.0, 1.0) show_hudmessage(iID, "STEAM Comienza El : 20/07 Culmina EL : 28/07") }
que carajo es "iiID"? y "#include < amxmodx.inc>"
Toma, hacelo así capo, el otro anda re-mal
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(0, 255, 0, COOR_HUD_X, COOR_HUD_Y, 1, 0.0, 1.0, 0.0, 0.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(0, SyncHudMsgId, "Soy un HUD Permanente"); }
Algo más nefasto que ser soberbio y novato?
SI, que hagas un plugin y te de error
(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(0, 255, 255, 0.3, 0.04, 1, 6.0, 1.0) show_hudmessage(iID, "STEAM Comienza El : 20/07 Culmina EL : 28/07") }
que carajo es "iiID"? y "#include < amxmodx.inc>"
Toma, hacelo así capo, el otro anda re-mal
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(0, 255, 0, COOR_HUD_X, COOR_HUD_Y, 1, 0.0, 1.0, 0.0, 0.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(0, SyncHudMsgId, "Soy un HUD Permanente"); }
Algo más nefasto que ser soberbio y novato?
SI, que hagas un plugin y te de error
(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(0, 255, 255, 0.3, 0.04, 1, 6.0, 1.0) show_hudmessage(iID, "STEAM Comienza El : 20/07 Culmina EL : 28/07") }
que carajo es "iiID"? y "#include < amxmodx.inc>"
Toma, hacelo así capo, el otro anda re-mal
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(0, 255, 0, COOR_HUD_X, COOR_HUD_Y, 1, 0.0, 1.0, 0.0, 0.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(0, SyncHudMsgId, "Soy un HUD Permanente"); }
Algo más nefasto que ser soberbio y novato?
SI, que hagas un plugin y te de error
Mensajes: 449
Temas: 66
Registro en: Aug 2016
Reputación:
3
(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(0, 255, 255, 0.3, 0.04, 1, 6.0, 1.0) show_hudmessage(iID, "STEAM Comienza El : 20/07 Culmina EL : 28/07") }
que carajo es "iiID"? y "#include < amxmodx.inc>"
Toma, hacelo así capo, el otro anda re-mal
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(0, 255, 0, COOR_HUD_X, COOR_HUD_Y, 1, 0.0, 1.0, 0.0, 0.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(0, SyncHudMsgId, "Soy un HUD Permanente"); }
el plugin de gex anda perfecto tu parece que eres el tipo que no prueba antes de comentar.
Mensajes: 1,015
Temas: 42
Registro en: Feb 2016
Reputación:
13
(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(0, 255, 255, 0.3, 0.04, 1, 6.0, 1.0) show_hudmessage(iID, "STEAM Comienza El : 20/07 Culmina EL : 28/07") }
que carajo es "iiID"? y "#include < amxmodx.inc>"
Toma, hacelo así capo, el otro anda re-mal
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(0, 255, 0, COOR_HUD_X, COOR_HUD_Y, 1, 0.0, 1.0, 0.0, 0.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(0, SyncHudMsgId, "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
|