[FilterScript] Sistema de Crйditos em Textdraw Editavel
#1

Olб galerinha, esse FS eu acabei de criar, bom , й um simples sistema de Creditos mostrados em textdraw e editaveis

Vamos la.


Para mostrar o textdraw digite /creditos ->


Para apagar o textdraw digite /creditosoff ->



Cуdigo ->
pawn Code:
/*


FS CRIADO POR [0P_][_NeexT_][L] = N3XTMapper, Forum sa-mp. 2014 ©
Nгo remova os crйditos !

*/


#define FILTERSCRIPT

#include <a_samp>

new Text:CreditosTextDraw[9];

public OnFilterScriptInit()
{
    print("\n--------------------------------------");
    print(" N3XTMapper, Forum sa-mp. 2014 ©      ");
    print("--------------------------------------\n");

    CreditosTextDraw[0] = TextDrawCreate(314.000000, 124.000000, "~w~~h~::: ~b~~h~~h~exibindo os creditos ~w~~h~::::");
    TextDrawAlignment(CreditosTextDraw[0], 2);
    TextDrawBackgroundColor(CreditosTextDraw[0], 51);
    TextDrawFont(CreditosTextDraw[0], 3);
    TextDrawLetterSize(CreditosTextDraw[0], 0.400000, 1.100000);
    TextDrawColor(CreditosTextDraw[0], -1);
    TextDrawSetOutline(CreditosTextDraw[0], 1);
    TextDrawSetProportional(CreditosTextDraw[0], 1);
    TextDrawUseBox(CreditosTextDraw[0], 1);
    TextDrawBoxColor(CreditosTextDraw[0], 136);
    TextDrawTextSize(CreditosTextDraw[0], 0.000000, 270.000000);

    CreditosTextDraw[1] = TextDrawCreate(314.000000, 139.000000, "Nome do servidor aqui ~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~");
    TextDrawAlignment(CreditosTextDraw[1], 2);
    TextDrawBackgroundColor(CreditosTextDraw[1], 51);
    TextDrawFont(CreditosTextDraw[1], 2);
    TextDrawLetterSize(CreditosTextDraw[1], 0.259999, 0.899999);
    TextDrawColor(CreditosTextDraw[1], -1);
    TextDrawSetOutline(CreditosTextDraw[1], 1);
    TextDrawSetProportional(CreditosTextDraw[1], 1);
    TextDrawUseBox(CreditosTextDraw[1], 1);
    TextDrawBoxColor(CreditosTextDraw[1], 68);
    TextDrawTextSize(CreditosTextDraw[1], 0.000000, 270.000000);

    CreditosTextDraw[2] = TextDrawCreate(234.000000, 159.000000, "~g~~h~~h~Dono (s) ~>~");
    TextDrawAlignment(CreditosTextDraw[2], 2);
    TextDrawBackgroundColor(CreditosTextDraw[2], 51);
    TextDrawFont(CreditosTextDraw[2], 2);
    TextDrawLetterSize(CreditosTextDraw[2], 0.300000, 0.899999);
    TextDrawColor(CreditosTextDraw[2], -1);
    TextDrawSetOutline(CreditosTextDraw[2], 1);
    TextDrawSetProportional(CreditosTextDraw[2], 1);
    TextDrawUseBox(CreditosTextDraw[2], 1);
    TextDrawBoxColor(CreditosTextDraw[2], 136);
    TextDrawTextSize(CreditosTextDraw[2], 0.000000, 109.000000);

    CreditosTextDraw[3] = TextDrawCreate(330.000000, 172.000000, "Nome do(s) dono(s) aqui !");
    TextDrawAlignment(CreditosTextDraw[3], 3);
    TextDrawBackgroundColor(CreditosTextDraw[3], 51);
    TextDrawFont(CreditosTextDraw[3], 2);
    TextDrawLetterSize(CreditosTextDraw[3], 0.259999, 0.899999);
    TextDrawColor(CreditosTextDraw[3], -1);
    TextDrawSetOutline(CreditosTextDraw[3], 1);
    TextDrawSetProportional(CreditosTextDraw[3], 1);

    CreditosTextDraw[4] = TextDrawCreate(234.000000, 188.000000, "~g~~h~~h~Criador (es) ~>~");
    TextDrawAlignment(CreditosTextDraw[4], 2);
    TextDrawBackgroundColor(CreditosTextDraw[4], 51);
    TextDrawFont(CreditosTextDraw[4], 2);
    TextDrawLetterSize(CreditosTextDraw[4], 0.300000, 0.899999);
    TextDrawColor(CreditosTextDraw[4], -1);
    TextDrawSetOutline(CreditosTextDraw[4], 1);
    TextDrawSetProportional(CreditosTextDraw[4], 1);
    TextDrawUseBox(CreditosTextDraw[4], 1);
    TextDrawBoxColor(CreditosTextDraw[4], 136);
    TextDrawTextSize(CreditosTextDraw[4], 0.000000, 109.000000);

    CreditosTextDraw[5] = TextDrawCreate(360.000000, 202.000000, "Nome do (s) criador (es) aqui !");
    TextDrawAlignment(CreditosTextDraw[5], 3);
    TextDrawBackgroundColor(CreditosTextDraw[5], 51);
    TextDrawFont(CreditosTextDraw[5], 2);
    TextDrawLetterSize(CreditosTextDraw[5], 0.259999, 0.899999);
    TextDrawColor(CreditosTextDraw[5], -1);
    TextDrawSetOutline(CreditosTextDraw[5], 1);
    TextDrawSetProportional(CreditosTextDraw[5], 1);

    CreditosTextDraw[6] = TextDrawCreate(234.000000, 218.000000, "~g~~h~~h~Agradecimentos ~>~");
    TextDrawAlignment(CreditosTextDraw[6], 2);
    TextDrawBackgroundColor(CreditosTextDraw[6], 51);
    TextDrawFont(CreditosTextDraw[6], 2);
    TextDrawLetterSize(CreditosTextDraw[6], 0.230000, 0.799998);
    TextDrawColor(CreditosTextDraw[6], -1);
    TextDrawSetOutline(CreditosTextDraw[6], 1);
    TextDrawSetProportional(CreditosTextDraw[6], 1);
    TextDrawUseBox(CreditosTextDraw[6], 1);
    TextDrawBoxColor(CreditosTextDraw[6], 136);
    TextDrawTextSize(CreditosTextDraw[6], 0.000000, 109.000000);

    CreditosTextDraw[7] = TextDrawCreate(312.000000, 238.000000, "agradecemos a voce por ter escolhido o nosso servidor~n~obrigado pela preferencia~n~volte sempre");
    TextDrawAlignment(CreditosTextDraw[7], 2);
    TextDrawBackgroundColor(CreditosTextDraw[7], 51);
    TextDrawFont(CreditosTextDraw[7], 2);
    TextDrawLetterSize(CreditosTextDraw[7], 0.189999, 0.699998);
    TextDrawColor(CreditosTextDraw[7], -1);
    TextDrawSetOutline(CreditosTextDraw[7], 1);
    TextDrawSetProportional(CreditosTextDraw[7], 1);

    CreditosTextDraw[8] = TextDrawCreate(312.000000, 280.000000, "~y~] ~w~~h~fs criado por n3xtmapper - forum sa-mp 2014 ~y~]");
    TextDrawAlignment(CreditosTextDraw[8], 2);
    TextDrawBackgroundColor(CreditosTextDraw[8], 51);
    TextDrawFont(CreditosTextDraw[8], 2);
    TextDrawLetterSize(CreditosTextDraw[8], 0.189999, 0.699998);
    TextDrawColor(CreditosTextDraw[8], -1);
    TextDrawSetOutline(CreditosTextDraw[8], 1);
    TextDrawSetProportional(CreditosTextDraw[8], 1);
    return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/creditos", cmdtext, true, 10) == 0)
    {
        for(new pt = 0; pt < sizeof(CreditosTextDraw); pt++)
              TextDrawShowForPlayer(playerid, CreditosTextDraw[pt]);
        SendClientMessage(playerid, -1, "{FF0000}[INFO]: {FFFFFF}Mostrando os crйdios, para destrui-los, /creditosoff");
        return 1;
    }
    // sumir textdraw
    if (strcmp("/creditosoff", cmdtext, true, 10) == 0)
    {
        for(new pt = 0; pt < sizeof(CreditosTextDraw); pt++)
              TextDrawHideForPlayer(playerid, CreditosTextDraw[pt]);
        SendClientMessage(playerid, -1, "{FF0000}[INFO]: {FFFFFF}Creditos apagados !" );
        return 1;
    }
    return 0;
}
Link no pastebin : http://pastebin.com/U3DjAWpn

Crйditos -> Eu pelo fs xD , Zamaroth pelo textdraw editor

Cуdigo updated by @PT
Reply
#2

Identaзгo 0!

Quote:
Originally Posted by N3XTMapper
new PlayerText:Textdraw0;
new PlayerText:Textdraw1;
new PlayerText:Textdraw2;
new PlayerText:Textdraw3;
new PlayerText:Textdraw4;
new PlayerText:Textdraw5;
new PlayerText:Textdraw6;
new PlayerText:Textdraw7;
new PlayerText:Textdraw8;
dava pra ficar melhor isso..
Reply
#3

sdds TAB

pawn Code:
new PlayerText:Textdraw0;
new PlayerText:Textdraw1;
new PlayerText:Textdraw2;
new PlayerText:Textdraw3;
new PlayerText:Textdraw4;
new PlayerText:Textdraw5;
new PlayerText:Textdraw6;
new PlayerText:Textdraw7;
new PlayerText:Textdraw8;
to

pawn Code:
new PlayerText:textDraw[8];
Design ficou muito bom, parabйns
Reply
#4

Quote:
Originally Posted by iFoox
View Post
Identaзгo 0!



dava pra ficar melhor isso..
Ta funcionando ? ta nй '-' vlw pela dica

Quote:
Originally Posted by smiir
View Post
sdds TAB

pawn Code:
new PlayerText:Textdraw0;
new PlayerText:Textdraw1;
new PlayerText:Textdraw2;
new PlayerText:Textdraw3;
new PlayerText:Textdraw4;
new PlayerText:Textdraw5;
new PlayerText:Textdraw6;
new PlayerText:Textdraw7;
new PlayerText:Textdraw8;

to

pawn Code:
new PlayerText:textDraw[8];

Design ficou muito bom, parabйns
Thanks man
Reply
#5

ate ficou agradavel, e ta funcionando e certo porem o code pode melhorar cara.

parabens.
Reply
#6

Quote:
Originally Posted by PT
View Post
ate ficou agradavel, e ta funcionando e certo porem o code pode melhorar cara.

parabens.
Obrigado, a unica coisa que nгo entendo й onde pode melhorar, sendo que estб tudo funcionando, questгo de estetica no code ? pra q : p
Reply
#7

Quote:
Originally Posted by N3XTMapper
View Post
Obrigado, a unica coisa que nгo entendo й onde pode melhorar, sendo que estб tudo funcionando, questгo de estetica no code ? pra q : p
percebe-se que vc й daqueles tipinhos que se metem a ser ignorantes ..

percebe-se que:
Code:
Nem tudo que funciona estб correto, e nem tudo que esta correto funciona ..
certifique-se que aprendeu para depois tentar passar algo para nossa board .. a questгo aqui й evoluir e nгo piorar ..

.. Gostei muito do seu design .. mбs seu code deixou a desejar .. ouзa com atenзгo o que os membros disseram acima .. sгo criticas positivas e construtivas
Reply
#8

Quote:
Originally Posted by Sky_.
View Post
percebe-se que vc й daqueles tipinhos que se metem a ser ignorantes ..

percebe-se que:
Code:
Nem tudo que funciona estб correto, e nem tudo que esta correto funciona ..
certifique-se que aprendeu para depois tentar passar algo para nossa board .. a questгo aqui й evoluir e nгo piorar ..

.. Gostei muito do seu design .. mбs seu code deixou a desejar .. ouзa com atenзгo o que os membros disseram acima .. sгo criticas positivas e construtivas
Tipinhos -.- . vlw pela dica
Reply
#9

nуooo cara eu era tгoo humildi quando tava aprendendo pawn cara ...

"a humildade passa longe dessa board"

+rep ai man.
Reply
#10

kkkkkkkk br -.- vlw kkk
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)