otra forma sin utilizar!!! [Ayuda]
#5

Con una variable:
pawn Код:
new Logueado[MAX_PLAYERS];
new Text:Texto1;
new Text:Texto2;
new Text:Texto3

public OnPlayerSpawn(playerid)
{
    if(Logueado[playerid])//si estб en uno pasa. si es 0 no.
    {
        SetTimerEx("ServerNombre", 8000, 0, "d", playerid);
    }
    TextDrawShowForPlayer(playerid, Texto1);
    TextDrawShowForPlayer(playerid, Texto2);
    TextDrawShowForPlayer(playerid, Texto3);
    if(Logueado[playerid] == 0){ Loguearse(playerid); }
    return 1;
}

forward Loguearse(playerid);
public Loguearse(playerid)
{
    SetTimerEx("ServerNombre", 8000, 0, "d", playerid);
    Logueado[playerid] = 1;
    return true;
}
   

public OnGameModeExit()
{
TextDrawHideForAll(Texto1);
TextDrawDestroy(Texto1);
TextDrawHideForAll(Texto2);
TextDrawDestroy(Texto2);
TextDrawHideForAll(Texto2);
TextDrawDestroy(Texto2);

return 1;
}


public OnGameModeInit()
{
Texto1 = TextDrawCreate(212.000000, 122.000000, ".::Bienvenido al Server::.");
TextDrawBackgroundColor(Texto1, 255);
TextDrawFont(Texto1, 1);
TextDrawLetterSize(Texto1, 0.479999, 2.099999);
TextDrawColor(Texto1, -67436289);
TextDrawSetOutline(Texto1, 0);
TextDrawSetProportional(Texto1, 1);
TextDrawSetShadow(Texto1, 1);

Texto2 = TextDrawCreate(239.000000, 141.000000, "~w~Version actual: ~g~0.5");
TextDrawBackgroundColor(Texto2, 255);
TextDrawFont(Texto2, 1);
TextDrawLetterSize(Texto2, 0.469999, 1.899999);
TextDrawColor(Texto2, -1);
TextDrawSetOutline(Texto2, 0);
TextDrawSetProportional(Texto2, 1);
TextDrawSetShadow(Texto2, 1);

Texto3 = TextDrawCreate(235.000000, 158.000000, "~r~~h~www.miweb.tk");
TextDrawBackgroundColor(Texto3, 255);
TextDrawFont(Texto3, 1);
TextDrawLetterSize(Texto3, 0.490000, 1.800000);
TextDrawColor(Texto3, -1);
TextDrawSetOutline(Texto3, 0);
TextDrawSetProportional(Texto3, 1);
TextDrawSetShadow(Texto3, 1);


return 1;
}

// aqui no se que poner si pongo TextDrawDestroy ya no vuelve aparecer si relogeo.. y si pongo TextDrawHideForPlayer(playerid, Texto3); me sale a cada rato despues de morir y spawnear de nuevo..

forward ServerNombre(playerid);
public ServerNombre(playerid)
{
 TextDrawHideForPlayer(playerid, Texto1);
 TextDrawHideForPlayer(playerid, Texto2);
 TextDrawHideForPlayer(playerid, Texto3);
}
Reply


Messages In This Thread
otra forma sin utilizar!!! [Ayuda] - by Zodiaco - 14.12.2014, 17:27
Respuesta: otra forma sin utilizar!!! [Ayuda] - by aoEXE - 14.12.2014, 19:56
Respuesta: otra forma sin utilizar!!! [Ayuda] - by Zodiaco - 23.12.2014, 01:40
Re: otra forma sin utilizar!!! [Ayuda] - by JuanStone - 23.12.2014, 01:46
Respuesta: otra forma sin utilizar!!! [Ayuda] - by jotajeda - 23.12.2014, 01:51
Respuesta: otra forma sin utilizar!!! [Ayuda] - by pep_25 - 23.12.2014, 01:59
Respuesta: otra forma sin utilizar!!! [Ayuda] - by Zodiaco - 23.12.2014, 02:16
Respuesta: otra forma sin utilizar!!! [Ayuda] - by jotajeda - 23.12.2014, 02:19
Respuesta: otra forma sin utilizar!!! [Ayuda] - by Zodiaco - 23.12.2014, 02:23
Respuesta: otra forma sin utilizar!!! [Ayuda] - by Zodiaco - 23.12.2014, 02:25

Forum Jump:


Users browsing this thread: 1 Guest(s)