SA-MP Forums Archive
[Ajuda] Como passa esse FS para o GM ? Obs: FS pequeno - 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] Como passa esse FS para o GM ? Obs: FS pequeno (/showthread.php?tid=517838)



Como passa esse FS para o GM ? Obs: FS pequeno - Chakal - 07.06.2014

Ola galera, Estou querendo passar um FS maneiro para o GM que estou usando, Jб tentei colocar ele no GM sem ajuda de ninguйm e nгo conseguir, dar muitos erros ao compilar.

Entгo quero que alguйm por gentileza possa me ensinar a passar esse Filterscript para o Gamemode.

~Nгo tenho Experiкncia com Pawn

Imagem ao morrer estilo GTA 5
Aqui estб Tуpico do Filterscript: https://sampforum.blast.hk/showthread.php?tid=496033

pawn Код:
/*

Filterscript Criado por NeexT , nгo remova os creditos NOOB !

*/


// |================ includes ==================|

#include                                                                        < a_samp >
#include                                                                        < a_players >
#pragma tabsize 0
// |================ includes ==================|

// |================ News das Textdraws ==================|
new PlayerText:Textdraw0;
new PlayerText:Textdraw1;
new PlayerText:Textdraw2;
new PlayerText:Textdraw3;
new PlayerText:Textdraw4;

// |================ News das Textdraws ==================|

#if defined FILTERSCRIPT

public OnFilterScriptInit()
{
    print("\n--------------------------------------");
    print(" TextDrawMorte Carregado com Sucesso !");
    print("--------------------------------------\n");
    return 1;
}

public OnFilterScriptExit()
{
    return 1;
}

#else

main()
{
    print("\n----------------------------------");
    print(" TextDrawMorte Descarregado com Sucesso !");
    print("----------------------------------\n");
}

#endif

public OnGameModeInit()
{

    return 1;
}

public OnGameModeExit()
{
    return 1;
}

public OnPlayerConnect(playerid)
{


Textdraw0 = CreatePlayerTextDraw(playerid,321.000000, 2.000000, "~n~~n~~n~~n~");
PlayerTextDrawAlignment(playerid,Textdraw0, 2);
PlayerTextDrawBackgroundColor(playerid,Textdraw0, 255);
PlayerTextDrawFont(playerid,Textdraw0, 1);
PlayerTextDrawLetterSize(playerid,Textdraw0, 0.529999, 12.400011);
PlayerTextDrawColor(playerid,Textdraw0, -1);
PlayerTextDrawSetOutline(playerid,Textdraw0, 0);
PlayerTextDrawSetProportional(playerid,Textdraw0, 1);
PlayerTextDrawSetShadow(playerid,Textdraw0, 1);
PlayerTextDrawUseBox(playerid,Textdraw0, 1);
PlayerTextDrawBoxColor(playerid,Textdraw0, -1835822029);
PlayerTextDrawTextSize(playerid,Textdraw0, 0.000000, 640.000000);
PlayerTextDrawSetSelectable(playerid,Textdraw0, 0);

Textdraw1 = CreatePlayerTextDraw(playerid,321.000000, 143.000000, "~n~~n~~n~~n~");
PlayerTextDrawAlignment(playerid,Textdraw1, 2);
PlayerTextDrawBackgroundColor(playerid,Textdraw1, 255);
PlayerTextDrawFont(playerid,Textdraw1, 1);
PlayerTextDrawLetterSize(playerid,Textdraw1, 0.529999, 5.199996);
PlayerTextDrawColor(playerid,Textdraw1, -1);
PlayerTextDrawSetOutline(playerid,Textdraw1, 0);
PlayerTextDrawSetProportional(playerid,Textdraw1, 1);
PlayerTextDrawSetShadow(playerid,Textdraw1, 1);
PlayerTextDrawUseBox(playerid,Textdraw1, 1);
PlayerTextDrawBoxColor(playerid,Textdraw1, -1835821961);
PlayerTextDrawTextSize(playerid,Textdraw1, 0.000000, 640.000000);
PlayerTextDrawSetSelectable(playerid,Textdraw1, 0);

Textdraw2 = CreatePlayerTextDraw(playerid,235.000000, 208.000000, "Se Fudeu !");
PlayerTextDrawBackgroundColor(playerid,Textdraw2, 102);
PlayerTextDrawFont(playerid,Textdraw2, 3);
PlayerTextDrawLetterSize(playerid,Textdraw2, 1.329998, 4.699996);
PlayerTextDrawColor(playerid,Textdraw2, -16776961);
PlayerTextDrawSetOutline(playerid,Textdraw2, 1);
PlayerTextDrawSetProportional(playerid,Textdraw2, 1);
PlayerTextDrawSetSelectable(playerid,Textdraw2, 0);

Textdraw3 = CreatePlayerTextDraw(playerid,321.000000, 139.000000, "~n~~n~~n~~n~");
PlayerTextDrawAlignment(playerid,Textdraw3, 2);
PlayerTextDrawBackgroundColor(playerid,Textdraw3, 255);
PlayerTextDrawFont(playerid,Textdraw3, 1);
PlayerTextDrawLetterSize(playerid,Textdraw3, 0.529999, -0.000000);
PlayerTextDrawColor(playerid,Textdraw3, -1);
PlayerTextDrawSetOutline(playerid,Textdraw3, 0);
PlayerTextDrawSetProportional(playerid,Textdraw3, 1);
PlayerTextDrawSetShadow(playerid,Textdraw3, 1);
PlayerTextDrawUseBox(playerid,Textdraw3, 1);
PlayerTextDrawBoxColor(playerid,Textdraw3, -16776961);
PlayerTextDrawTextSize(playerid,Textdraw3, 0.000000, 640.000000);
PlayerTextDrawSetSelectable(playerid,Textdraw3, 0);

Textdraw4 = CreatePlayerTextDraw(playerid,321.000000, 335.000000, "~n~~n~~n~~n~");
PlayerTextDrawAlignment(playerid,Textdraw4, 2);
PlayerTextDrawBackgroundColor(playerid,Textdraw4, 255);
PlayerTextDrawFont(playerid,Textdraw4, 1);
PlayerTextDrawLetterSize(playerid,Textdraw4, 0.529999, -0.000000);
PlayerTextDrawColor(playerid,Textdraw4, -1);
PlayerTextDrawSetOutline(playerid,Textdraw4, 0);
PlayerTextDrawSetProportional(playerid,Textdraw4, 1);
PlayerTextDrawSetShadow(playerid,Textdraw4, 1);
PlayerTextDrawUseBox(playerid,Textdraw4, 1);
PlayerTextDrawBoxColor(playerid,Textdraw4, -16776961);
PlayerTextDrawTextSize(playerid,Textdraw4, 0.000000, 640.000000);
PlayerTextDrawSetSelectable(playerid,Textdraw4, 0);

    return 1;
}

public OnPlayerSpawn(playerid)
{

PlayerTextDrawHide(playerid, PlayerText:Textdraw0);
PlayerTextDrawHide(playerid, PlayerText:Textdraw1);
PlayerTextDrawHide(playerid, PlayerText:Textdraw2);
PlayerTextDrawHide(playerid, PlayerText:Textdraw3);
PlayerTextDrawHide(playerid, PlayerText:Textdraw4);

    return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{

PlayerTextDrawShow(playerid, PlayerText:Textdraw0);
PlayerTextDrawShow(playerid, PlayerText:Textdraw1);
PlayerTextDrawShow(playerid, PlayerText:Textdraw2);
PlayerTextDrawShow(playerid, PlayerText:Textdraw3);
PlayerTextDrawShow(playerid, PlayerText:Textdraw4);

    return 1;
}
Me desculpe os erro no Portuguкs.


Re: Como passa esse FS para o GM ? Obs: FS pequeno - focaximubh - 07.06.2014

Poisй mas deve ter experiкncia em leitura pelomenos.....

Leia os cуdigos antes de pega-los e sair tacando no GM se vocк tivesse lido para tentar entender vocк veria que tanto no fs quanto no seu gm tem as finзхes : OnPlayerConnect OnPlayerDeath OnPlayerSpawn e vocк deveria saber jб desde quando comeзou a mecher em algum gm que tais definiзхes ficam no topo do GM agora leia isso atentamente e associe ao seu problema


Re: Como passa esse FS para o GM ? Obs: FS pequeno - Luucass - 07.06.2014

Coloque isso no topo do gm , onde estб as new
pawn Код:
new PlayerText:Textdraw0;
new PlayerText:Textdraw1;
new PlayerText:Textdraw2;
new PlayerText:Textdraw3;
new PlayerText:Textdraw4;
Procure pela public OnPlayerConnect e coloque isso dentro dessa public
pawn Код:
Textdraw0 = CreatePlayerTextDraw(playerid,321.000000, 2.000000, "~n~~n~~n~~n~");
PlayerTextDrawAlignment(playerid,Textdraw0, 2);
PlayerTextDrawBackgroundColor(playerid,Textdraw0, 255);
PlayerTextDrawFont(playerid,Textdraw0, 1);
PlayerTextDrawLetterSize(playerid,Textdraw0, 0.529999, 12.400011);
PlayerTextDrawColor(playerid,Textdraw0, -1);
PlayerTextDrawSetOutline(playerid,Textdraw0, 0);
PlayerTextDrawSetProportional(playerid,Textdraw0, 1);
PlayerTextDrawSetShadow(playerid,Textdraw0, 1);
PlayerTextDrawUseBox(playerid,Textdraw0, 1);
PlayerTextDrawBoxColor(playerid,Textdraw0, -1835822029);
PlayerTextDrawTextSize(playerid,Textdraw0, 0.000000, 640.000000);
PlayerTextDrawSetSelectable(playerid,Textdraw0, 0);

Textdraw1 = CreatePlayerTextDraw(playerid,321.000000, 143.000000, "~n~~n~~n~~n~");
PlayerTextDrawAlignment(playerid,Textdraw1, 2);
PlayerTextDrawBackgroundColor(playerid,Textdraw1, 255);
PlayerTextDrawFont(playerid,Textdraw1, 1);
PlayerTextDrawLetterSize(playerid,Textdraw1, 0.529999, 5.199996);
PlayerTextDrawColor(playerid,Textdraw1, -1);
PlayerTextDrawSetOutline(playerid,Textdraw1, 0);
PlayerTextDrawSetProportional(playerid,Textdraw1, 1);
PlayerTextDrawSetShadow(playerid,Textdraw1, 1);
PlayerTextDrawUseBox(playerid,Textdraw1, 1);
PlayerTextDrawBoxColor(playerid,Textdraw1, -1835821961);
PlayerTextDrawTextSize(playerid,Textdraw1, 0.000000, 640.000000);
PlayerTextDrawSetSelectable(playerid,Textdraw1, 0);

Textdraw2 = CreatePlayerTextDraw(playerid,235.000000, 208.000000, "Se Fudeu !");
PlayerTextDrawBackgroundColor(playerid,Textdraw2, 102);
PlayerTextDrawFont(playerid,Textdraw2, 3);
PlayerTextDrawLetterSize(playerid,Textdraw2, 1.329998, 4.699996);
PlayerTextDrawColor(playerid,Textdraw2, -16776961);
PlayerTextDrawSetOutline(playerid,Textdraw2, 1);
PlayerTextDrawSetProportional(playerid,Textdraw2, 1);
PlayerTextDrawSetSelectable(playerid,Textdraw2, 0);

Textdraw3 = CreatePlayerTextDraw(playerid,321.000000, 139.000000, "~n~~n~~n~~n~");
PlayerTextDrawAlignment(playerid,Textdraw3, 2);
PlayerTextDrawBackgroundColor(playerid,Textdraw3, 255);
PlayerTextDrawFont(playerid,Textdraw3, 1);
PlayerTextDrawLetterSize(playerid,Textdraw3, 0.529999, -0.000000);
PlayerTextDrawColor(playerid,Textdraw3, -1);
PlayerTextDrawSetOutline(playerid,Textdraw3, 0);
PlayerTextDrawSetProportional(playerid,Textdraw3, 1);
PlayerTextDrawSetShadow(playerid,Textdraw3, 1);
PlayerTextDrawUseBox(playerid,Textdraw3, 1);
PlayerTextDrawBoxColor(playerid,Textdraw3, -16776961);
PlayerTextDrawTextSize(playerid,Textdraw3, 0.000000, 640.000000);
PlayerTextDrawSetSelectable(playerid,Textdraw3, 0);

Textdraw4 = CreatePlayerTextDraw(playerid,321.000000, 335.000000, "~n~~n~~n~~n~");
PlayerTextDrawAlignment(playerid,Textdraw4, 2);
PlayerTextDrawBackgroundColor(playerid,Textdraw4, 255);
PlayerTextDrawFont(playerid,Textdraw4, 1);
PlayerTextDrawLetterSize(playerid,Textdraw4, 0.529999, -0.000000);
PlayerTextDrawColor(playerid,Textdraw4, -1);
PlayerTextDrawSetOutline(playerid,Textdraw4, 0);
PlayerTextDrawSetProportional(playerid,Textdraw4, 1);
PlayerTextDrawSetShadow(playerid,Textdraw4, 1);
PlayerTextDrawUseBox(playerid,Textdraw4, 1);
PlayerTextDrawBoxColor(playerid,Textdraw4, -16776961);
PlayerTextDrawTextSize(playerid,Textdraw4, 0.000000, 640.000000);
PlayerTextDrawSetSelectable(playerid,Textdraw4, 0);
Procure pela public OnPlayerSpawn e coloque isso dentro da public
pawn Код:
PlayerTextDrawHide(playerid, PlayerText:Textdraw0);
PlayerTextDrawHide(playerid, PlayerText:Textdraw1);
PlayerTextDrawHide(playerid, PlayerText:Textdraw2);
PlayerTextDrawHide(playerid, PlayerText:Textdraw3);
PlayerTextDrawHide(playerid, PlayerText:Textdraw4);
Procure pela public OnPlayerDeath e coloque isso dentro da public
pawn Код:
PlayerTextDrawShow(playerid, PlayerText:Textdraw0);
PlayerTextDrawShow(playerid, PlayerText:Textdraw1);
PlayerTextDrawShow(playerid, PlayerText:Textdraw2);
PlayerTextDrawShow(playerid, PlayerText:Textdraw3);
PlayerTextDrawShow(playerid, PlayerText:Textdraw4);
Simples n ? cк й iniciante mas pra fazer isso tem que saber lк pelo menos


Re: Como passa esse FS para o GM ? Obs: FS pequeno - Chakal - 07.06.2014

@Obrigado focaximubh pela Dica.

@Luucass Obrigado por me ajudar.

@Resolvido


Re: Como passa esse FS para o GM ? Obs: FS pequeno - Luucass - 07.06.2014

Quote:
Originally Posted by Chakal
Посмотреть сообщение
@Obrigado focaximubh pela Dica. Agora antes de eu pergunta vou ler rsrs

@Luucass Obrigado por me ajudar.

@Resolvido
Nada , pode da ++REP , nunca ganhei , rss


Re: Como passa esse FS para o GM ? Obs: FS pequeno - Chakal - 07.06.2014

Quote:
Originally Posted by Luucass
Посмотреть сообщение
Nada , pode da ++REP , nunca ganhei , rss
Nгo sei dar rep. Eu Clico na estrela no canto dai nгo sei o que fazer