SA-MP Forums Archive
[AJUDA]FS Textdraw que baixei - 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: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [AJUDA]FS Textdraw que baixei (/showthread.php?tid=339506)



[AJUDA]FS Textdraw que baixei - [STR]Matrix - 03.05.2012

Ae Galera baixei esse textdraw na net mais so que ele nгo fuciona

pawn Код:
#include <a_samp>

new Text:LOOST;
new Text:WWW;
new Text:TECNOSAMP;
new Text:NET;
new Text:INI;
new Text:FIN;

public OnFilterScriptInit()
{
    LOOST = TextDrawCreate(511.000000, 399.000000, "LoOsT");
    TextDrawBackgroundColor(LOOST, 255);
    TextDrawFont(LOOST, 1);
    TextDrawLetterSize(LOOST, 1.109999, 3.699998);
    TextDrawColor(LOOST, -1);
    TextDrawSetOutline(LOOST, 0);
    TextDrawSetProportional(LOOST, 1);
    TextDrawSetShadow(LOOST, 3);

    WWW = TextDrawCreate(510.000000, 430.000000, "www");
    TextDrawBackgroundColor(WWW, 255);
    TextDrawFont(WWW, 0);
    TextDrawLetterSize(WWW, 0.500000, 1.100000);
    TextDrawColor(WWW, -16776961);
    TextDrawSetOutline(WWW, 1);
    TextDrawSetProportional(WWW, 1);

    TECNOSAMP = TextDrawCreate(544.000000, 430.000000, "tecno-samp");
    TextDrawBackgroundColor(TECNOSAMP, 255);
    TextDrawFont(TECNOSAMP, 1);
    TextDrawLetterSize(TECNOSAMP, 0.279999, 1.200000);
    TextDrawColor(TECNOSAMP, -1);
    TextDrawSetOutline(TECNOSAMP, 1);
    TextDrawSetProportional(TECNOSAMP, 1);

    NET = TextDrawCreate(602.000000, 430.000000, "net");
    TextDrawBackgroundColor(NET, 255);
    TextDrawFont(NET, 0);
    TextDrawLetterSize(NET, 0.500000, 1.100000);
    TextDrawColor(NET, -16776961);
    TextDrawSetOutline(NET, 1);
    TextDrawSetProportional(NET, 1);

    INI = TextDrawCreate(540.000000, 430.000000, ".");
    TextDrawBackgroundColor(INI, 255);
    TextDrawFont(INI, 2);
    TextDrawLetterSize(INI, 0.500000, 1.100000);
    TextDrawColor(INI, -65281);
    TextDrawSetOutline(INI, 0);
    TextDrawSetProportional(INI, 1);
    TextDrawSetShadow(INI, 1);

    FIN = TextDrawCreate(598.000000, 430.000000, ".");
    TextDrawBackgroundColor(FIN, 255);
    TextDrawFont(FIN, 2);
    TextDrawLetterSize(FIN, 0.500000, 1.100000);
    TextDrawColor(FIN, -65281);
    TextDrawSetOutline(FIN, 0);
    TextDrawSetProportional(FIN, 1);
    TextDrawSetShadow(FIN, 1);

    for(new i; i < MAX_PLAYERS; i ++)
    {
        if(IsPlayerConnected(i))
        {
            TextDrawShowForPlayer(i, LOOST);
            TextDrawShowForPlayer(i, WWW);
            TextDrawShowForPlayer(i, TECNOSAMP);
            TextDrawShowForPlayer(i, NET);
            TextDrawShowForPlayer(i, INI);
            TextDrawShowForPlayer(i, FIN);
        }
    }
    return 1;
}

public OnFilterScriptExit()
{
    TextDrawHideForAll(LOOST);
    TextDrawDestroy(LOOST);
    TextDrawHideForAll(WWW);
    TextDrawDestroy(WWW);
    TextDrawHideForAll(TECNOSAMP);
    TextDrawDestroy(TECNOSAMP);
    TextDrawHideForAll(NET);
    TextDrawDestroy(NET);
    TextDrawHideForAll(INI);
    TextDrawDestroy(INI);
    TextDrawHideForAll(FIN);
    TextDrawDestroy(FIN);
    return 1;
}

public OnPlayerConnect(playerid)
{
    TextDrawShowForPlayer(playerid, LOOST);
    TextDrawShowForPlayer(playerid, WWW);
    TextDrawShowForPlayer(playerid, TECNOSAMP);
    TextDrawShowForPlayer(playerid, NET);
    TextDrawShowForPlayer(playerid, INI);
    TextDrawShowForPlayer(playerid, FIN);
    return 1;
}
Alguem pode me ajudar?


Re: [AJUDA]FS Textdraw que baixei - Lуs - 03.05.2012

Tente deste modo:

pawn Код:
#include <a_samp>

new Text:LOOST;
new Text:WWW;
new Text:TECNOSAMP;
new Text:NET;
new Text:INI;
new Text:FIN;

public OnFilterScriptInit()
{
    LOOST = TextDrawCreate(511.000000, 399.000000, "LoOsT");
    TextDrawBackgroundColor(LOOST, 255);
    TextDrawFont(LOOST, 1);
    TextDrawLetterSize(LOOST, 1.109999, 3.699998);
    TextDrawColor(LOOST, -1);
    TextDrawSetOutline(LOOST, 0);
    TextDrawSetProportional(LOOST, 1);
    TextDrawSetShadow(LOOST, 3);

    WWW = TextDrawCreate(510.000000, 430.000000, "www");
    TextDrawBackgroundColor(WWW, 255);
    TextDrawFont(WWW, 0);
    TextDrawLetterSize(WWW, 0.500000, 1.100000);
    TextDrawColor(WWW, -16776961);
    TextDrawSetOutline(WWW, 1);
    TextDrawSetProportional(WWW, 1);

    TECNOSAMP = TextDrawCreate(544.000000, 430.000000, "tecno-samp");
    TextDrawBackgroundColor(TECNOSAMP, 255);
    TextDrawFont(TECNOSAMP, 1);
    TextDrawLetterSize(TECNOSAMP, 0.279999, 1.200000);
    TextDrawColor(TECNOSAMP, -1);
    TextDrawSetOutline(TECNOSAMP, 1);
    TextDrawSetProportional(TECNOSAMP, 1);

    NET = TextDrawCreate(602.000000, 430.000000, "net");
    TextDrawBackgroundColor(NET, 255);
    TextDrawFont(NET, 0);
    TextDrawLetterSize(NET, 0.500000, 1.100000);
    TextDrawColor(NET, -16776961);
    TextDrawSetOutline(NET, 1);
    TextDrawSetProportional(NET, 1);

    INI = TextDrawCreate(540.000000, 430.000000, ".");
    TextDrawBackgroundColor(INI, 255);
    TextDrawFont(INI, 2);
    TextDrawLetterSize(INI, 0.500000, 1.100000);
    TextDrawColor(INI, -65281);
    TextDrawSetOutline(INI, 0);
    TextDrawSetProportional(INI, 1);
    TextDrawSetShadow(INI, 1);

    FIN = TextDrawCreate(598.000000, 430.000000, ".");
    TextDrawBackgroundColor(FIN, 255);
    TextDrawFont(FIN, 2);
    TextDrawLetterSize(FIN, 0.500000, 1.100000);
    TextDrawColor(FIN, -65281);
    TextDrawSetOutline(FIN, 0);
    TextDrawSetProportional(FIN, 1);
    TextDrawSetShadow(FIN, 1);

    return 1;
}

public OnFilterScriptExit()
{
    TextDrawHideForAll(LOOST);
    TextDrawDestroy(LOOST);
    TextDrawHideForAll(WWW);
    TextDrawDestroy(WWW);
    TextDrawHideForAll(TECNOSAMP);
    TextDrawDestroy(TECNOSAMP);
    TextDrawHideForAll(NET);
    TextDrawDestroy(NET);
    TextDrawHideForAll(INI);
    TextDrawDestroy(INI);
    TextDrawHideForAll(FIN);
    TextDrawDestroy(FIN);
    return 1;
}

public OnPlayerConnect(playerid)
{
    TextDrawShowForPlayer(playerid, LOOST);
    TextDrawShowForPlayer(playerid, WWW);
    TextDrawShowForPlayer(playerid, TECNOSAMP);
    TextDrawShowForPlayer(playerid, NET);
    TextDrawShowForPlayer(playerid, INI);
    TextDrawShowForPlayer(playerid, FIN);
    return 1;
}
Abraзos.


Re: [AJUDA]FS Textdraw que baixei - [STR]Matrix - 03.05.2012

Quote:
Originally Posted by Los
Посмотреть сообщение
Tente deste modo:

pawn Код:
#include <a_samp>

new Text:LOOST;
new Text:WWW;
new Text:TECNOSAMP;
new Text:NET;
new Text:INI;
new Text:FIN;

public OnFilterScriptInit()
{
    LOOST = TextDrawCreate(511.000000, 399.000000, "LoOsT");
    TextDrawBackgroundColor(LOOST, 255);
    TextDrawFont(LOOST, 1);
    TextDrawLetterSize(LOOST, 1.109999, 3.699998);
    TextDrawColor(LOOST, -1);
    TextDrawSetOutline(LOOST, 0);
    TextDrawSetProportional(LOOST, 1);
    TextDrawSetShadow(LOOST, 3);

    WWW = TextDrawCreate(510.000000, 430.000000, "www");
    TextDrawBackgroundColor(WWW, 255);
    TextDrawFont(WWW, 0);
    TextDrawLetterSize(WWW, 0.500000, 1.100000);
    TextDrawColor(WWW, -16776961);
    TextDrawSetOutline(WWW, 1);
    TextDrawSetProportional(WWW, 1);

    TECNOSAMP = TextDrawCreate(544.000000, 430.000000, "tecno-samp");
    TextDrawBackgroundColor(TECNOSAMP, 255);
    TextDrawFont(TECNOSAMP, 1);
    TextDrawLetterSize(TECNOSAMP, 0.279999, 1.200000);
    TextDrawColor(TECNOSAMP, -1);
    TextDrawSetOutline(TECNOSAMP, 1);
    TextDrawSetProportional(TECNOSAMP, 1);

    NET = TextDrawCreate(602.000000, 430.000000, "net");
    TextDrawBackgroundColor(NET, 255);
    TextDrawFont(NET, 0);
    TextDrawLetterSize(NET, 0.500000, 1.100000);
    TextDrawColor(NET, -16776961);
    TextDrawSetOutline(NET, 1);
    TextDrawSetProportional(NET, 1);

    INI = TextDrawCreate(540.000000, 430.000000, ".");
    TextDrawBackgroundColor(INI, 255);
    TextDrawFont(INI, 2);
    TextDrawLetterSize(INI, 0.500000, 1.100000);
    TextDrawColor(INI, -65281);
    TextDrawSetOutline(INI, 0);
    TextDrawSetProportional(INI, 1);
    TextDrawSetShadow(INI, 1);

    FIN = TextDrawCreate(598.000000, 430.000000, ".");
    TextDrawBackgroundColor(FIN, 255);
    TextDrawFont(FIN, 2);
    TextDrawLetterSize(FIN, 0.500000, 1.100000);
    TextDrawColor(FIN, -65281);
    TextDrawSetOutline(FIN, 0);
    TextDrawSetProportional(FIN, 1);
    TextDrawSetShadow(FIN, 1);

    return 1;
}

public OnFilterScriptExit()
{
    TextDrawHideForAll(LOOST);
    TextDrawDestroy(LOOST);
    TextDrawHideForAll(WWW);
    TextDrawDestroy(WWW);
    TextDrawHideForAll(TECNOSAMP);
    TextDrawDestroy(TECNOSAMP);
    TextDrawHideForAll(NET);
    TextDrawDestroy(NET);
    TextDrawHideForAll(INI);
    TextDrawDestroy(INI);
    TextDrawHideForAll(FIN);
    TextDrawDestroy(FIN);
    return 1;
}

public OnPlayerConnect(playerid)
{
    TextDrawShowForPlayer(playerid, LOOST);
    TextDrawShowForPlayer(playerid, WWW);
    TextDrawShowForPlayer(playerid, TECNOSAMP);
    TextDrawShowForPlayer(playerid, NET);
    TextDrawShowForPlayer(playerid, INI);
    TextDrawShowForPlayer(playerid, FIN);
    return 1;
}
Abraзos.
Nгo fucionou


Re: [AJUDA]FS Textdraw que baixei - Lуs - 03.05.2012

Quote:
Originally Posted by [STR]Matrix
Посмотреть сообщение
Nгo fucionou
Tente mostrar a textdraw ao player ao invйs de OnPlayerConnect, no OnPlayerSpawn.

Abraзos.


Re: [AJUDA]FS Textdraw que baixei - @Riichard - 03.05.2012

Voce estб usando como FS?
Se Sim..
Deixe o nome da FS,em primeiro.

Ex :

Filterscripts TextDraw PM nitro etc..


Re: [AJUDA]FS Textdraw que baixei - Lуs - 03.05.2012

Quote:
Originally Posted by @Riichard
Посмотреть сообщение
Voce estб usando como FS?
Se Sim..
Deixe o nome da FS,em primeiro.

Ex :

Filterscripts TextDraw PM nitro etc..
Desde quando a ordem dos filterscripts importa? Oque importa й se eles estгo sendo carregados normalmente ou nгo.
Poste server.log.


Re: [AJUDA]FS Textdraw que baixei - [STR]Matrix - 03.05.2012

ta ae ele й o hora.amx

pawn Код:
----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3d-R2, (C)2005-2011 SA-MP Team

[19:08:05]
[19:08:05] Server Plugins
[19:08:05] --------------
[19:08:05]  Loading plugin: Whirlpool
[19:08:05]  
[19:08:05]  ==================
[19:08:05]  
[19:08:05]   Whirlpool loaded
[19:08:05]  
[19:08:05]  ==================
[19:08:05]  
[19:08:05]   Loaded.
[19:08:05]  Loading plugin: streamer
[19:08:05]

*** Streamer Plugin v2.6 by Incognito loaded ***

[19:08:05]   Loaded.
[19:08:05]  Loading plugin: sscanf
[19:08:05]

[19:08:05]  ===============================

[19:08:05]       sscanf plugin loaded.    

[19:08:05]    (c) 2009 Alex "******" Cole

[19:08:05]    0.3d-R2 800 Players "dnee"

[19:08:05]  ===============================

[19:08:05]   Loaded.
[19:08:05]  Loading plugin: Dini
[19:08:05]   Failed.
[19:08:05]  Loaded 3 plugins.

[19:08:05]
[19:08:05] Filterscripts
[19:08:05] ---------------
[19:08:05]   Loading filterscript 'lladmin.amx'...
[19:08:05]   Loading filterscript 'Nitro.amx'...
[19:08:05]   Loading filterscript 'Tunar.amx'...
[19:08:05]   Loading filterscript 'cor.amx'...
[19:08:05]   Loading filterscript 'carro.amx'...
[19:08:05]   Loading filterscript 'Portao.amx'...
[19:08:05]   Loading filterscript 'Elevador.amx'...
[19:08:05]   Loading filterscript 'mapas.amx'...
[19:08:05]   Loading filterscript 'reparo.amx'...
[19:08:05]   Loading filterscript 'ip.amx'...
[19:08:05]
*** Player IP limiting FS (maxips) Loaded. Max connections from 1 IP = 3

[19:08:05]   Loading filterscript 'hack.amx'...
[19:08:05]   Loading filterscript 'racha.amx'...
[19:08:05]
--------------------------------------
[19:08:05]  Blank Filterscript by your name here
[19:08:05] --------------------------------------

[19:08:05]   Loading filterscript 'skin.amx'...
[19:08:05]   Loading filterscript 'animes.amx'...
[19:08:05]   Loading filterscript 'hora.amx'...
[19:08:05]   Loaded 15 filterscripts.

[19:08:05] Number of vehicle models: 14
[19:08:05] Pasta 'Logs' Encontrada e carregada com sucesso.
[19:08:05] Logs Criados/Carregados com sucesso.
[19:08:05] Pasta 'Banidos' Encontrada e carregada com sucesso.
[19:08:05] Pasta 'Banidos/Contas' Encontrada e carregada com sucesso.
[19:08:05] Arquivo 'Fodidos.txt' Encontrado e carregado com sucesso.
[19:08:05] Arquivo 'Admins.adm' Encontrado e carregado com sucesso.
[19:08:05] Arquivo 'Helpers.hel' Encontrado e carregado com sucesso.
[19:08:05] Arquivo 'Vips.vip' Encontrado e carregado com sucesso.
[19:08:05] Pasta 'Contas' Encontrada e carregada com sucesso.
[19:08:08] --- Server Shutting Down.
[19:08:08]  
[19:08:08]  ====================
[19:08:08]  
[19:08:08]   Whirlpool unloaded
[19:08:08]  
[19:08:08]  ====================
[19:08:08]  
[19:08:08]

*** Streamer Plugin v2.6 by Incognito unloaded ***

[19:08:08]

[19:08:08]  ===============================

[19:08:08]      sscanf plugin unloaded.    

[19:08:08]  ===============================



Re: [AJUDA]FS Textdraw que baixei - BreakDriFT - 03.05.2012

o Servidor estбno seu pc ou em host ?


Re: [AJUDA]FS Textdraw que baixei - [STR]Matrix - 03.05.2012

Quote:
Originally Posted by Los
Посмотреть сообщение
Tente mostrar a textdraw ao player ao invйs de OnPlayerConnect, no OnPlayerSpawn.

Abraзos.

Sem sucesso mesma coisa



Re: [AJUDA]FS Textdraw que baixei - steeldark - 03.05.2012

Quote:
Originally Posted by [STR]Matrix
Посмотреть сообщение

Sem sucesso mesma coisa
Tenta colocar os codigos no proprio GM.