Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /////////////////////////////////////////////////////////////////////////////////////
- // Creditos: //
- // By Adoniiz. //
- /////////////////////////////////////////////////////////////////////////////////////
- #include <a_samp>
- #pragma tabsize 0
- // Textdraws definidos.
- new Text:ECU0;
- new Text:ECU1;
- new Text:ECU2;
- new Text:ECU3;
- new Text:ECU4;
- new Text:ECU5;
- /////////////////////////////////////////////////////////////////////////////////////
- public OnFilterScriptInit()
- {
- // Si quieres esto en tú GameMode, coloca esto en OnGameModeInit preferentemente
- ECU0 = TextDrawCreate(154.000000, 124.000000, "_");
- TextDrawBackgroundColor(ECU0, -16776961);
- TextDrawFont(ECU0, 1);
- TextDrawLetterSize(ECU0, 0.529999, 7.899998);
- TextDrawColor(ECU0, -16776961);
- TextDrawSetOutline(ECU0, 0);
- TextDrawSetProportional(ECU0, 1);
- TextDrawSetShadow(ECU0, 0);
- TextDrawUseBox(ECU0, 1);
- TextDrawBoxColor(ECU0, -53405953);
- TextDrawTextSize(ECU0, 496.000000, 19.000000);
- ECU1 = TextDrawCreate(154.000000, 199.000000, "_");
- TextDrawBackgroundColor(ECU1, -16776961);
- TextDrawFont(ECU1, 1);
- TextDrawLetterSize(ECU1, 0.519999, 5.300000);
- TextDrawColor(ECU1, -16776961);
- TextDrawSetOutline(ECU1, 0);
- TextDrawSetProportional(ECU1, 1);
- TextDrawSetShadow(ECU1, 0);
- TextDrawUseBox(ECU1, 1);
- TextDrawBoxColor(ECU1, 3713279);
- TextDrawTextSize(ECU1, 496.000000, 19.000000);
- ECU2 = TextDrawCreate(154.000000, 250.000000, "_");
- TextDrawBackgroundColor(ECU2, -16776961);
- TextDrawFont(ECU2, 1);
- TextDrawLetterSize(ECU2, 0.519999, 5.900000);
- TextDrawColor(ECU2, -16776961);
- TextDrawSetOutline(ECU2, 0);
- TextDrawSetProportional(ECU2, 1);
- TextDrawSetShadow(ECU2, 0);
- TextDrawUseBox(ECU2, 1);
- TextDrawBoxColor(ECU2, -837736705);
- TextDrawTextSize(ECU2, 496.000000, 43.000000);
- ECU3 = TextDrawCreate(239.000000, 166.000000, "U");
- TextDrawBackgroundColor(ECU3, -16776961);
- TextDrawFont(ECU3, 0);
- TextDrawLetterSize(ECU3, 4.419998, 10.100000);
- TextDrawColor(ECU3, -65281);
- TextDrawSetOutline(ECU3, 1);
- TextDrawSetProportional(ECU3, 1);
- ECU4 = TextDrawCreate(303.000000, 161.000000, "--");
- TextDrawBackgroundColor(ECU4, 255);
- TextDrawFont(ECU4, 1);
- TextDrawLetterSize(ECU4, 1.500000, 3.000000);
- TextDrawColor(ECU4, -1942421249);
- TextDrawSetOutline(ECU4, 0);
- TextDrawSetProportional(ECU4, 1);
- TextDrawSetShadow(ECU4, 1);
- ECU5 = TextDrawCreate(309.000000, 199.000000, "M");
- TextDrawBackgroundColor(ECU5, 16777215);
- TextDrawFont(ECU5, 0);
- TextDrawLetterSize(ECU5, 0.949999, 4.400000);
- TextDrawColor(ECU5, -1);
- TextDrawSetOutline(ECU5, 0);
- TextDrawSetProportional(ECU5, 1);
- TextDrawSetShadow(ECU5, 1);
- TextDrawUseBox(ECU5, 1);
- TextDrawBoxColor(ECU5, -1513164801);
- TextDrawTextSize(ECU5, 341.000000, 0.000000);
- return 1;
- }
- /////////////////////////////////////////////////////////////////////////////////////
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- /*Si quieres un comando para que aparesca la Bandera, usa TextDrawShowForPlayer para mostrar el textdraw, ejemplo:
- TextDrawShowForPlayer(playerid,ElTextDraw); o también lo puedes poner para todos: TextDrawShowForAll(ElTextDraw);
- para esconder los TextDraw usa TextDrawHideForPlayer y para destruirlo usa TextDrawDestroy.
- Para más información: http://wiki.sa-mp.com/ y ve a la zona de TextDraw's
- Ejemplo de comando:
- - Mostrar la bandera
- if(!strcmp(cmdtext, "/mostrarbandera", true))
- {
- TextDrawShowForPlayer(playerid,ElTextDraw);
- SendClientMessage(playerid, -1, "Estás mostrando la bandera !");
- return 1;
- }
- - y para ocultarla
- if(!strcmp(cmdtext, "/ocultarbandera", true))
- {
- TextDrawHideForPlayer(playerid,ElTextDraw);
- SendClientMessage(playerid, -1, "Estás ocultando la bandera !");
- return 1;
- }
- */
- return 0;
- }
- /////////////////////////////////////////////////////////////////////////////////////
Advertisement
Add Comment
Please, Sign In to add comment