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:COL0;
- new Text:COL1;
- new Text:COL2;
- /////////////////////////////////////////////////////////////////////////////////////
- public OnFilterScriptInit()
- {
- // Si quieres esto en tú GameMode, coloca esto en OnGameModeInit preferentemente
- COL0 = TextDrawCreate(154.000000, 124.000000, "_");
- TextDrawBackgroundColor(COL0, -16776961);
- TextDrawFont(COL0, 1);
- TextDrawLetterSize(COL0, 0.529999, 7.899998);
- TextDrawColor(COL0, -16776961);
- TextDrawSetOutline(COL0, 0);
- TextDrawSetProportional(COL0, 1);
- TextDrawSetShadow(COL0, 0);
- TextDrawUseBox(COL0, 1);
- TextDrawBoxColor(COL0, -53405953);
- TextDrawTextSize(COL0, 496.000000, 19.000000);
- COL1 = TextDrawCreate(154.000000, 199.000000, "_");
- TextDrawBackgroundColor(COL1, -16776961);
- TextDrawFont(COL1, 1);
- TextDrawLetterSize(COL1, 0.519999, 5.300000);
- TextDrawColor(COL1, -16776961);
- TextDrawSetOutline(COL1, 0);
- TextDrawSetProportional(COL1, 1);
- TextDrawSetShadow(COL1, 0);
- TextDrawUseBox(COL1, 1);
- TextDrawBoxColor(COL1, 3713279);
- TextDrawTextSize(COL1, 496.000000, 19.000000);
- COL2 = TextDrawCreate(154.000000, 250.000000, "_");
- TextDrawBackgroundColor(COL2, -16776961);
- TextDrawFont(COL2, 1);
- TextDrawLetterSize(COL2, 0.519999, 5.900000);
- TextDrawColor(COL2, -16776961);
- TextDrawSetOutline(COL2, 0);
- TextDrawSetProportional(COL2, 1);
- TextDrawSetShadow(COL2, 0);
- TextDrawUseBox(COL2, 1);
- TextDrawBoxColor(COL2, -837736705);
- TextDrawTextSize(COL2, 496.000000, 43.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