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:PAR0;
- new Text:PAR1;
- new Text:PAR2;
- new Text:PAR3;
- new Text:PAR4;
- new Text:PAR5;
- new Text:PAR6;
- /////////////////////////////////////////////////////////////////////////////////////
- public OnFilterScriptInit()
- {
- // Si quieres esto en tú GameMode, coloca esto en OnGameModeInit preferentemente
- PAR0 = TextDrawCreate(493.000000, 248.000000, "_");
- TextDrawBackgroundColor(PAR0, 255);
- TextDrawFont(PAR0, 3);
- TextDrawLetterSize(PAR0, 0.800000, 6.099998);
- TextDrawColor(PAR0, 16711935);
- TextDrawSetOutline(PAR0, 0);
- TextDrawSetProportional(PAR0, 1);
- TextDrawSetShadow(PAR0, 1);
- TextDrawUseBox(PAR0, 1);
- TextDrawBoxColor(PAR0, 995795967);
- TextDrawTextSize(PAR0, 142.000000, 5.000000);
- PAR1 = TextDrawCreate(493.000000, 199.000000, "_");
- TextDrawBackgroundColor(PAR1, 255);
- TextDrawFont(PAR1, 3);
- TextDrawLetterSize(PAR1, 0.800000, 5.199999);
- TextDrawColor(PAR1, 16711935);
- TextDrawSetOutline(PAR1, 0);
- TextDrawSetProportional(PAR1, 1);
- TextDrawSetShadow(PAR1, 1);
- TextDrawUseBox(PAR1, 1);
- TextDrawBoxColor(PAR1, -1);
- TextDrawTextSize(PAR1, 142.000000, 8.000000);
- PAR2 = TextDrawCreate(493.000000, 145.000000, "_");
- TextDrawBackgroundColor(PAR2, 255);
- TextDrawFont(PAR2, 3);
- TextDrawLetterSize(PAR2, 0.800000, 5.599999);
- TextDrawColor(PAR2, 16711935);
- TextDrawSetOutline(PAR2, 0);
- TextDrawSetProportional(PAR2, 1);
- TextDrawSetShadow(PAR2, 1);
- TextDrawUseBox(PAR2, 1);
- TextDrawBoxColor(PAR2, -1107286017);
- TextDrawTextSize(PAR2, 142.000000, 5.000000);
- PAR3 = TextDrawCreate(301.000000, 203.000000, "O");
- TextDrawBackgroundColor(PAR3, 255);
- TextDrawFont(PAR3, 1);
- TextDrawLetterSize(PAR3, 1.230000, 4.099999);
- TextDrawColor(PAR3, -1107286017);
- TextDrawSetOutline(PAR3, 0);
- TextDrawSetProportional(PAR3, 1);
- TextDrawSetShadow(PAR3, 1);
- PAR4 = TextDrawCreate(310.000000, 214.000000, "O");
- TextDrawBackgroundColor(PAR4, 255);
- TextDrawFont(PAR4, 1);
- TextDrawLetterSize(PAR4, 0.559999, 1.900000);
- TextDrawColor(PAR4, 65535);
- TextDrawSetOutline(PAR4, 0);
- TextDrawSetProportional(PAR4, 1);
- TextDrawSetShadow(PAR4, 1);
- PAR5 = TextDrawCreate(311.000000, 219.000000, "]");
- TextDrawBackgroundColor(PAR5, 255);
- TextDrawFont(PAR5, 2);
- TextDrawLetterSize(PAR5, 0.380000, 0.900000);
- TextDrawColor(PAR5, -65281);
- TextDrawSetOutline(PAR5, 0);
- TextDrawSetProportional(PAR5, 1);
- TextDrawSetShadow(PAR5, 1);
- PAR6 = TextDrawCreate(304.000000, 207.000000, "O");
- TextDrawBackgroundColor(PAR6, 255);
- TextDrawFont(PAR6, 1);
- TextDrawLetterSize(PAR6, 1.009999, 3.300000);
- TextDrawColor(PAR6, 16711935);
- TextDrawSetOutline(PAR6, 0);
- TextDrawSetProportional(PAR6, 1);
- TextDrawSetShadow(PAR6, 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