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:BOL0;
- new Text:BOL1;
- new Text:BOL2;
- new Text:BOL3;
- new Text:BOL4;
- new Text:BOL5;
- new Text:BOL6;
- /////////////////////////////////////////////////////////////////////////////////////
- public OnFilterScriptInit()
- {
- // Si quieres esto en tú GameMode, coloca esto en OnGameModeInit preferentemente
- BOL0 = TextDrawCreate(493.000000, 248.000000, "_");
- TextDrawBackgroundColor(BOL0, 255);
- TextDrawFont(BOL0, 3);
- TextDrawLetterSize(BOL0, 0.800000, 6.099998);
- TextDrawColor(BOL0, 8861439);
- TextDrawSetOutline(BOL0, 0);
- TextDrawSetProportional(BOL0, 1);
- TextDrawSetShadow(BOL0, 1);
- TextDrawUseBox(BOL0, 1);
- TextDrawBoxColor(BOL0, 8861439);
- TextDrawTextSize(BOL0, 142.000000, 5.000000);
- BOL1 = TextDrawCreate(493.000000, 199.000000, "_");
- TextDrawBackgroundColor(BOL1, 255);
- TextDrawFont(BOL1, 3);
- TextDrawLetterSize(BOL1, 0.800000, 5.199999);
- TextDrawColor(BOL1, 16711935);
- TextDrawSetOutline(BOL1, 0);
- TextDrawSetProportional(BOL1, 1);
- TextDrawSetShadow(BOL1, 1);
- TextDrawUseBox(BOL1, 1);
- TextDrawBoxColor(BOL1, -65281);
- TextDrawTextSize(BOL1, 142.000000, 8.000000);
- BOL2 = TextDrawCreate(493.000000, 145.000000, "_");
- TextDrawBackgroundColor(BOL2, 255);
- TextDrawFont(BOL2, 3);
- TextDrawLetterSize(BOL2, 0.800000, 5.599999);
- TextDrawColor(BOL2, 16711935);
- TextDrawSetOutline(BOL2, 0);
- TextDrawSetProportional(BOL2, 1);
- TextDrawSetShadow(BOL2, 1);
- TextDrawUseBox(BOL2, 1);
- TextDrawBoxColor(BOL2, -16776961);
- TextDrawTextSize(BOL2, 142.000000, 5.000000);
- BOL3 = TextDrawCreate(270.000000, 201.000000, "U");
- TextDrawBackgroundColor(BOL3, 255);
- TextDrawFont(BOL3, 0);
- TextDrawLetterSize(BOL3, 2.599999, 4.199999);
- TextDrawColor(BOL3, -16776961);
- TextDrawSetOutline(BOL3, 0);
- TextDrawSetProportional(BOL3, 1);
- TextDrawSetShadow(BOL3, 1);
- BOL4 = TextDrawCreate(299.000000, 201.000000, "V");
- TextDrawBackgroundColor(BOL4, 255);
- TextDrawFont(BOL4, 1);
- TextDrawLetterSize(BOL4, 1.730000, 1.399999);
- TextDrawColor(BOL4, 1679557631);
- TextDrawSetOutline(BOL4, 0);
- TextDrawSetProportional(BOL4, 1);
- TextDrawSetShadow(BOL4, 1);
- BOL5 = TextDrawCreate(307.000000, 207.000000, "O");
- TextDrawBackgroundColor(BOL5, 255);
- TextDrawFont(BOL5, 1);
- TextDrawLetterSize(BOL5, 0.990000, 3.199999);
- TextDrawColor(BOL5, 16711935);
- TextDrawSetOutline(BOL5, 0);
- TextDrawSetProportional(BOL5, 1);
- TextDrawSetShadow(BOL5, 1);
- BOL6 = TextDrawCreate(312.000000, 211.000000, "O");
- TextDrawBackgroundColor(BOL6, 255);
- TextDrawFont(BOL6, 1);
- TextDrawLetterSize(BOL6, 0.580000, 2.300001);
- TextDrawColor(BOL6, 59751679);
- TextDrawSetOutline(BOL6, 0);
- TextDrawSetProportional(BOL6, 1);
- TextDrawSetShadow(BOL6, 1);
- 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