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:ARG0;
- new Text:ARG1;
- new Text:ARG2;
- new Text:ARG3;
- /////////////////////////////////////////////////////////////////////////////////////
- public OnFilterScriptInit()
- {
- // Si quieres esto en tú GameMode, coloca esto en OnGameModeInit preferentemente
- ARG0 = TextDrawCreate(493.000000, 248.000000, "_");
- TextDrawBackgroundColor(ARG0, 255);
- TextDrawFont(ARG0, 3);
- TextDrawLetterSize(ARG0, 0.800000, 6.099999);
- TextDrawColor(ARG0, 16711935);
- TextDrawSetOutline(ARG0, 0);
- TextDrawSetProportional(ARG0, 1);
- TextDrawSetShadow(ARG0, 1);
- TextDrawUseBox(ARG0, 1);
- TextDrawBoxColor(ARG0, 1974131711);
- TextDrawTextSize(ARG0, 142.000000, 5.000000);
- ARG1 = TextDrawCreate(493.000000, 199.000000, "_");
- TextDrawBackgroundColor(ARG1, 255);
- TextDrawFont(ARG1, 3);
- TextDrawLetterSize(ARG1, 0.800000, 5.200000);
- TextDrawColor(ARG1, 16711935);
- TextDrawSetOutline(ARG1, 0);
- TextDrawSetProportional(ARG1, 1);
- TextDrawSetShadow(ARG1, 1);
- TextDrawUseBox(ARG1, 1);
- TextDrawBoxColor(ARG1, -1);
- TextDrawTextSize(ARG1, 142.000000, 8.000000);
- ARG2 = TextDrawCreate(493.000000, 145.000000, "_");
- TextDrawBackgroundColor(ARG2, 255);
- TextDrawFont(ARG2, 3);
- TextDrawLetterSize(ARG2, 0.800000, 5.600000);
- TextDrawColor(ARG2, 16711935);
- TextDrawSetOutline(ARG2, 0);
- TextDrawSetProportional(ARG2, 1);
- TextDrawSetShadow(ARG2, 1);
- TextDrawUseBox(ARG2, 1);
- TextDrawBoxColor(ARG2, 1974131711);
- TextDrawTextSize(ARG2, 142.000000, 5.000000);
- ARG3 = TextDrawCreate(289.000, 200.500, "LD_DRV:nawtxt");
- TextDrawFont(ARG3, 4);
- TextDrawTextSize(ARG3, 50.500, 44.500);
- TextDrawColor(ARG3, -327425);
- 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