Peršokti į turinį

Dingsta texdraw panaudojus komanda


Recommended Posts

Sveiki. Tokia b─Śd─ů kai ┼żmogus para┼ío /salmas jam dingsta vienas textdraw. t.y j┼│ yra 3.┬á ┬á ┬á D─Śl ┼íios eilut─Śs kuri yra apa─Źioj dingsta textdraw

PVZ:

1. Lietuvos 2. Miesteli┼│ 3. Gyvenimas

Naudoju komand─ů betkokiu komanda kurioje yra┬á┬á ┬á ShowInfoText(playerid, "~g~Pakeitei lyti!", 3000, true);

                    2. Miestelių 3. Gyvenimas

 

 

 

 

Eilut─Ś

┬á┬á ┬á┬á┬á ┬áShowInfoText(playerid, "~g~U┼żsid─Śjai ┼íalm─ů!", 3000, true);

TextDraw:

    LogoTD[playerid][0] = CreatePlayerTextDraw(playerid, 9.844450, 321.617828, "Lietuvos");
    PlayerTextDrawLetterSize(playerid, LogoTD[playerid][0], 0.400000, 1.600000);
    PlayerTextDrawAlignment(playerid, LogoTD[playerid][0], 1);
    PlayerTextDrawColor(playerid, LogoTD[playerid][0], 10289151);
    PlayerTextDrawSetShadow(playerid, LogoTD[playerid][0], 0);
    PlayerTextDrawSetOutline(playerid, LogoTD[playerid][0], 0);
    PlayerTextDrawBackgroundColor(playerid, LogoTD[playerid][0], 255);
    PlayerTextDrawFont(playerid, LogoTD[playerid][0], 1);
    PlayerTextDrawSetProportional(playerid, LogoTD[playerid][0], 1);
    PlayerTextDrawSetShadow(playerid, LogoTD[playerid][0], 0);

Redaguota , nario Litukas123
Nuoroda ─» komentar─ů
Dalintis per kit─ů puslap─»

(redaguota)
26 minutes prie┼í, Scripting'Game para┼í─Ś:

Kaip matau, TextDraw ne globalinis o playerinis. O tie du kiti kaip atrodo TextDrawai?

Taip pat

Redaguota , nario Litukas123
Nuoroda ─» komentar─ů
Dalintis per kit─ů puslap─»

Tai, kad nelabai yra skirtumas k─ů naudoti: global ar player.
TS, textdraw'as ┼íalinamas ar paslepiamas? Arba susimai┼ío textdraw'┼│ ID, arba ka┼żkur paslepi/i┼ítrini textdraw'─ů. Parodyk┬áShowInfoText funkcij─ů.

Nuoroda ─» komentar─ů
Dalintis per kit─ů puslap─»

prie┼í 15 valandas(-┼│), ES.^ para┼í─Ś:

Tai, kad nelabai yra skirtumas k─ů naudoti: global ar player.
TS, textdraw'as ┼íalinamas ar paslepiamas? Arba susimai┼ío textdraw'┼│ ID, arba ka┼żkur paslepi/i┼ítrini textdraw'─ů. Parodyk┬áShowInfoText funkcij─ů.

Dingsta tas textdraw. Jo net sugr─ů┼żint neeina. Bet dingsta tik vienas. Tada ka┼żkaip subuginau, kad pirmo nerodytu, tada dingo antras.

 

COMMAND:pakeistilyti(playerid, params[])
{
    if(playerDB[playerid][admin] < 4) return 0;
    new skaicius,id;
    if(sscanf(params, "ud",id,skaicius)) return SendClientMessage(playerid, BLUE, "* Pakeisti lytį : /pakeistilyti [V_P] [ID]");
┬á┬á ┬áelse if(id == INVALID_PLAYER_ID) return SendClientMessage(playerid, RED, "* Tokio ┼żaid─Śjo n─Śra");
    else
    {
        playerDB[id][lytis] = skaicius;
        ShowInfoText(playerid, "~r~Pakeitei lyti!", 3000, true);
    }
    return true;
}

Nuoroda ─» komentar─ů
Dalintis per kit─ů puslap─»

17 minutes prie┼í, ES.^ para┼í─Ś:

┼Żi┼źr─Śk visur modo aplankale, ─»ra┼íyk funkcijos pavadinim─ů ─» paie┼ík─ů.

stock ShowInfoText(playerid, tekstas[], ShowTime, bool: WithSound)
{
    if(playerDB[playerid][InfoText] == INVALID_PLAYER_TEXT_DRAW)
    {
        playerDB[playerid][InfoText] = CreateInfoText(playerid, tekstas);

        PlayerTextDrawShow(playerid, playerDB[playerid][InfoText]);

        SetTimerEx("HideInfoText", ShowTime, false, "i", playerid);
    }
    else
    {
        HideInfoText(playerid);
        playerDB[playerid][InfoText] = CreateInfoText(playerid, tekstas);

        PlayerTextDrawShow(playerid, playerDB[playerid][InfoText]);

        SetTimerEx("HideInfoText", ShowTime, false, "i", playerid);
    }

    if(WithSound) { PlayerPlaySound(playerid, 1057, 0.0, 0.0, 0.0); }
    return 1;
}

Nuoroda ─» komentar─ů
Dalintis per kit─ů puslap─»

3 minutes prie┼í, ES.^ para┼í─Ś:

Parodyk HideInfoText ir CreateInfoText funkcijas.

public HideInfoText(playerid)
{
    if(playerDB[playerid][InfoText] != INVALID_PLAYER_TEXT_DRAW)
    {
        PlayerTextDrawHide   (playerid, playerDB[playerid][InfoText]);
        PlayerTextDrawDestroy(playerid, playerDB[playerid][InfoText]);
        
        playerDB[playerid][InfoText] = INVALID_PLAYER_TEXT_DRAW;
    }
    return 1;
}

ir n┼żn tiksliai ar ┼íitas:

stock PlayerText: CreateInfoText(playerid, tekstas[])
{
    new PlayerText: InfoTextdraw;

    InfoTextdraw = CreatePlayerTextDraw(playerid, 13, 150, tekstas);

    PlayerTextDrawUseBox         (playerid, InfoTextdraw, 1);
    PlayerTextDrawBoxColor       (playerid, InfoTextdraw, 0x00000099);
    PlayerTextDrawTextSize       (playerid, InfoTextdraw, 159, 81);
    PlayerTextDrawAlignment      (playerid, InfoTextdraw, 0);
    PlayerTextDrawBackgroundColor(playerid, InfoTextdraw, 0x000000ff);
    PlayerTextDrawFont           (playerid, InfoTextdraw, 1);
    PlayerTextDrawLetterSize     (playerid, InfoTextdraw, 0.33, 1);
    PlayerTextDrawColor          (playerid, InfoTextdraw, 0xffffffff);
    PlayerTextDrawSetOutline     (playerid, InfoTextdraw, 1);
    PlayerTextDrawSetProportional(playerid, InfoTextdraw, 1);
    PlayerTextDrawSetShadow      (playerid, InfoTextdraw, 1);

    return(InfoTextdraw);
}

 

Nuoroda ─» komentar─ů
Dalintis per kit─ů puslap─»

Pabandyk OnPlayerConnect para┼íyt tok─» kod─ů:

playerDB[playerid][InfoText] = INVALID_PLAYER_TEXT_DRAW;

Ir per┼żi┼źr─Śk vis─ů mod─ů, ar n─Śra jame ka┼żko pana┼íaus, pvz.:

playerDB[playerid][InfoText] = 1;
playerDB[playerid][InfoText] = 2;
playerDB[playerid][InfoText] = <ka┼żkas>;

 

Nuoroda ─» komentar─ů
Dalintis per kit─ů puslap─»

4 minutes prie┼í, ES.^ para┼í─Ś:

Pabandyk OnPlayerConnect para┼íyt tok─» kod─ů:

playerDB[playerid][InfoText] = INVALID_PLAYER_TEXT_DRAW;

Ir per┼żi┼źr─Śk vis─ů mod─ů, ar n─Śra jame ka┼żko pana┼íaus, pvz.:

playerDB[playerid][InfoText] = 1;
playerDB[playerid][InfoText] = 2;
playerDB[playerid][InfoText] = <ka┼żkas>;

 

Veikia! D─Śkui labai!!!

Nuoroda ─» komentar─ů
Dalintis per kit─ů puslap─»

Sve─Źias
┼ái tema yra u┼żrakinta.
  • ┼áiame puslapyje nar┼ío:   0 nariai

    • N─Śra registruot┼│ nari┼│ per┼żi┼źrin─Źi┼│ ┼í─» forum─ů.

├Ś
├Ś
  • Sukurti nauj─ů...