SA-MP Forums Archive
[APORTE]HIDE TAG (ESCONDER NOMBRE) - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Español/Spanish (https://sampforum.blast.hk/forumdisplay.php?fid=29)
+----- Forum: Lanzamientos/Releases (https://sampforum.blast.hk/forumdisplay.php?fid=59)
+----- Thread: [APORTE]HIDE TAG (ESCONDER NOMBRE) (/showthread.php?tid=639036)



[APORTE]HIDE TAG (ESCONDER NOMBRE) - FlaNy - 10.08.2017

COMO OCULTAR EL NAME



Hola amigos de samp, el dнa de hoy vengo ha enseсar ah como hacer hide TAG(Esconder TAG )

https://sampwiki.blast.hk/wiki/Image:Afkicon.png (TAG)

Para hacer un hide tag ocuparemos lo siguiente, tomaremos informaciуn de la wiki de samp.
https://sampwiki.blast.hk/wiki/ShowPlayerNameTagForPlayer

Para hacer hide map con un comando es el siguente

(COMANDO EN STRCMP) callback OnPlayerCommandText.
Code:
if (strcmp("/OcultarTag", cmdtext, true) == 0){
for(new i = GetPlayerPoolSize(); i != -1; --i) ShowPlayerNameTagForPlayer(playerid, i, false);//(False =0 (TRUE=1)
GameTextForPlayer(playerid, "~b~TAG OCULTO ~R~OFF", 5000, 5);
return 1;}
(COMANDO EN ZCMD)
Code:
 
CMD:OcultarTag(playerid,params[]);{
for(new i = GetPlayerPoolSize(); i != -1; --i) ShowPlayerNameTagForPlayer(playerid, i, false);//(False =0 (TRUE=1)
GameTextForPlayer(playerid, "~b~TAG OCULTO ~R~OFF", 5000, 5);
return 1;}
Como lo vuelvo activar?
Simple, vamos ah la linea ShowPlayerNameTagForPlayer(playerid, i, false);
Cambiamos el false por true oh por 1 como ustedes les guste.

El comando para activarlo seria este
(COMANDO EN STRCMP) callback OnPlayerCommandText.
Code:
 
if (strcmp("/MostrarTag", cmdtext, true) == 0){
for(new i = GetPlayerPoolSize(); i != -1; --i) ShowPlayerNameTagForPlayer(playerid, i,true);
GameTextForPlayer(playerid, "~w~TAG Visible ~R~OFF", 5000, 5);
return 1;}
(COMANDO EN ZCMD)
Code:
CMD:MostrarTag(playerid,params[]);{
for(new i = GetPlayerPoolSize(); i != -1; --i) ShowPlayerNameTagForPlayer(playerid, i, true);//(False =0 (TRUE=1)
GameTextForPlayer(playerid, "~w~TAG Visible ~R~OFF", 5000, 5);
return 1;}
Si encuentran algo inusual, publicar en el post.

De ante mano esto es todo.

Para la prуxima hare un HIDE MAP Y UN HIDE TAG Por comando


Respuesta: [APORTE]HIDE TAG (ESCONDER NOMBRE) - adri1 - 10.08.2017

ShowNameTags(0);


Respuesta: [APORTE]HIDE TAG (ESCONDER NOMBRE) - Dello - 10.08.2017

Bien, es algo sencillo pero sirve! Estarнa buenнsimo un servidor roleplay sin nombres. (Obvio que re dificil jaja)


Re: [APORTE]HIDE TAG (ESCONDER NOMBRE) - FlaNy - 11.08.2017

Adr1 eso en veces causa problemas (lo digo por que ya lo probe)


Re: [APORTE]HIDE TAG (ESCONDER NOMBRE) - SmileJack - 11.08.2017

Que es esto por dios... Como puedes hacer este man.