[Ayuda]No se oculta el TextDraw Al Spawnear
#1

Buen dнa.

-Estoy creando un servidor nuevo roleplay desde 0, todo desde el principio [Desde 0], sin ningъn tipo de GM base.

-He creado ciertas cosas y todo bien, hasta ahora que creo un TextDraw y a la hora de colocarlo todo va bien, pero al ingresar al servidor y al completar los datos de login y al spawnear, no se oculta el textdraw.

•Mi problema detallado es:
-їPorquй al completar los datos de login y spawnear no se oculta el TextDraw que aparece en el login?
-Tengo todo configurado correctamente " Segъn Yo", no me salta ningъn warning, error, nada.

•Mi cуdigo es:

Код:
new Text:Logueo[MAX_PLAYERS];
•Public OnGameModeInit():


Код:
public OnGameModeInit()
{

Logueo[0] = TextDrawCreate(641.531494, 1.500000, "usebox");
TextDrawLetterSize(Logueo[0], 0.000000, 11.414814);
TextDrawTextSize(Logueo[0], -2.000000, 0.000000);
TextDrawAlignment(Logueo[0], 1);
TextDrawColor(Logueo[0], 0);
TextDrawUseBox(Logueo[0], true);
TextDrawBoxColor(Logueo[0], 102);
TextDrawSetShadow(Logueo[0], 0);
TextDrawSetOutline(Logueo[0], 0);
TextDrawFont(Logueo[0], 0);

Logueo[1] = TextDrawCreate(641.531494, 354.416687, "usebox");
TextDrawLetterSize(Logueo[1], 0.000000, 10.183333);
TextDrawTextSize(Logueo[1], -2.000000, 0.000000);
TextDrawAlignment(Logueo[1], 1);
TextDrawColor(Logueo[1], 0);
TextDrawUseBox(Logueo[1], true);
TextDrawBoxColor(Logueo[1], 102);
TextDrawSetShadow(Logueo[1], 0);
TextDrawSetOutline(Logueo[1], 0);
TextDrawFont(Logueo[1], 0);

Logueo[2] = TextDrawCreate(146.178665, 38.500015, "The Saints RolePlay");
TextDrawLetterSize(Logueo[2], 1.344874, 4.254167);
TextDrawAlignment(Logueo[2], 1);
TextDrawColor(Logueo[2], 16777215);
TextDrawSetShadow(Logueo[2], 0);
TextDrawSetOutline(Logueo[2], 1);
TextDrawBackgroundColor(Logueo[2], 255);
TextDrawFont(Logueo[2], 0);
TextDrawSetProportional(Logueo[2], 1);
TextDrawSetSelectable(Logueo[2], true);

Logueo[3] = TextDrawCreate(641.531494, 108.833328, "usebox");
TextDrawLetterSize(Logueo[3], 0.000000, 26.775928);
TextDrawTextSize(Logueo[3], 610.357238, 0.000000);
TextDrawAlignment(Logueo[3], 1);
TextDrawColor(Logueo[3], 0);
TextDrawUseBox(Logueo[3], true);
TextDrawBoxColor(Logueo[3], 102);
TextDrawSetShadow(Logueo[3], 0);
TextDrawSetOutline(Logueo[3], 0);
TextDrawFont(Logueo[3], 0);

Logueo[4] = TextDrawCreate(28.705711, 108.833328, "usebox");
TextDrawLetterSize(Logueo[4], 0.000000, 26.775928);
TextDrawTextSize(Logueo[4], -2.000000, 0.000000);
TextDrawAlignment(Logueo[4], 1);
TextDrawColor(Logueo[4], 0);
TextDrawUseBox(Logueo[4], true);
TextDrawBoxColor(Logueo[4], 102);
TextDrawSetShadow(Logueo[4], 0);
TextDrawSetOutline(Logueo[4], 0);
TextDrawFont(Logueo[4], 0);

Logueo[5] = TextDrawCreate(138.213790, 362.250030, "Disfruta Tu Estadia En Nuestro Servidor");
TextDrawLetterSize(Logueo[5], 0.449999, 1.600000);
TextDrawAlignment(Logueo[5], 1);
TextDrawColor(Logueo[5], -1);
TextDrawSetShadow(Logueo[5], 0);
TextDrawSetOutline(Logueo[5], 1);
TextDrawBackgroundColor(Logueo[5], 51);
TextDrawFont(Logueo[5], 2);
TextDrawSetProportional(Logueo[5], 1);

return 1;
}
•Public OnPlayerRequestClass:

Код:
public OnPlayerRequestClass(playerid, classid)
{
    TextDrawShowForPlayer(playerid, Logueo[0]);
    TextDrawShowForPlayer(playerid, Logueo[1]);
    TextDrawShowForPlayer(playerid, Logueo[2]);
    TextDrawShowForPlayer(playerid, Logueo[3]);
    TextDrawShowForPlayer(playerid, Logueo[4]);
    TextDrawShowForPlayer(playerid, Logueo[5]);
	return 1;
}
•Public OnPlayerSpawn:

Код:
public OnPlayerSpawn(playerid)
{
   TextDrawHideForPlayer(playerid, Logueado[playerid]);
   return 1;
}
Aquн Unas Imбgenes:






Sн pueden ayudarme a resolver mi problema me serнa de una gran ayuda!

-Quй todos tengan un excelente dнa!
Reply
#2

їNo podrнas colocar el texto un poquito mas grande?
Esa GM es Base, la e visto, donde, no se, pero si la vi.

Volviendo al tema.
Sobre lo otro, o bueno, segъn yo, puedes usar:


їHas intentando usar el TextDrawHideForAll? Para asн ocultarlo en cuanto Spawnee.

Cambia esto:
Код:
public OnPlayerSpawn(playerid)
{
   TextDrawHideForPlayer(playerid, Logueado[playerid]);
   return 1;
}
Por esto:
Код:
public OnPlayerSpawn(playerid)
{
   TextDrawHideForAll(playerid, Logueado[playerid]);
   return 1;
}
Posiblemente sea asн, ya que arriba le estas indicando es que este para un jugador en especifico, y no para todos. (Si es para un jugador en especifico, debes decirle cual)
Reply
#3

Ya corregн lo del texto.
2- їQuieres Una ScreenShot para que veas que nisiquiera he hecho comandos y apenas estoy empezando a crearla? Asн no tienes dudas de que es desde 0.

3- No, no he probado a utilizar TextDrawHideForAll.
Reply
#4

Vuelve a leer mi respuesta, andaba editando lo que puse.

Posdata: Si no llegas a entender algo, ojo, solo por si acaso, aquн te dejo una guнa de algo:

Clickeame. (Si no tienes cuenta en PS, te lo coloco aquн entonces)
Reply
#5

Vale, gracias. Y pъes, sн, si tengo cuenta en PS.

-їDe quй me servirб leer esa guнa? Son cosas que ya sй, aunque sirven para reforzar un poco mбs el conocimiento.

-Probarй con TextDrawHideForAll, y te responderй a ver si solucionу!
Reply
#6

Quote:
Originally Posted by TommyJohnson
Посмотреть сообщение
Vale, gracias. Y pъes, sн, si tengo cuenta en PS.

-їDe quй me servirб leer esa guнa? Son cosas que ya sй, aunque sirven para reforzar un poco mбs el conocimiento.

-Probarй con TextDrawHideForAll, y te responderй a ver si solucionу!
Por eso, jaja, por si se te olvida algo que no entiendes.
Vale, espero tu respuesta, que en un rato me retiro.
Reply
#7

Nada hombre, sigue sin funcionar.

No se oculta el TextDraw & ya puse lo del TextDrawHideForAll.


Clickame

Clickame2
Reply
#8

їHas probado a crearle un Timer a que cuando se loguee, desaparezca?

PD: Ando buscando igual unas cosas en mi GM y fuera, a ver si consigo ayudarte.


Segъn la Wiki:

Код:
new TextID;
 
TextID = TextDrawCreate(...);
 
 
//Later on
TextDrawShowForAll(TextID);
 
//Even later on
TextDrawHideForAll(TextID);
Reply
#9

Hmmmm, No. . .

-їCуmo lo creo?
-їDуnde lo coloco?

Reply
#10

Quote:
Originally Posted by TommyJohnson
Посмотреть сообщение
Hmmmm, No. . .

-їCуmo lo creo?
-їDуnde lo coloco?

No te sabrнa decir exactamente, ando revisando opciones.

Intenta probar con el TextDrawDestroy, pero en la parte donde loguea uo Spawnea, a ver.

Код:
public OnGameModeExit()
{
    for(new i = 0x0 ; i != sizeof Deka_velocimetro ; ++ i)
    TextDrawDestroy(Deka_velocimetro[i]);
    return 1;
}
O Intenta con algo asн: (Editalo a que saque el Textdraw, si no te funciona lo de arriba, aunque este dudo que funcione, no se, esto lo uso es para un veloc.)

Код:
stock SacarVelocimetro(playerid)
{
	Loop(i,5,0) TextDrawHideForPlayer(playerid,Velocimetro[i]);
	PlayerTextDrawHide(playerid,VelocidadV[playerid]);
 	DeletePVar(playerid,"MOSTRO_VELOCIMETRO");
	HideProgressBarForPlayer(playerid,BCombustible[playerid]);
	HideProgressBarForPlayer(playerid,BEstadoVeh[playerid]);
	PlayerTextDrawHide(playerid, TDContadorKM[playerid] );
}
O Prueba en "OnPlayerConnect", de esta forma: (Sino, pбsalo al Spawn)

Код:
public OnPlayerConnect(playerid)
{
    TextDrawDestroy(textdraw[playerid]);
    return 1;
}
Te pongo a editar variables, porque realmente ando con algo de sueсo para cambiar parбmetros y demбs, tu disculpa.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)