Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- new Text:Textdraw0;
- new Text:Textdraw1;
- new Text:Textdraw2;
- new Text:Textdraw3;
- new Text:Textdraw4;
- new Text:Textdraw5;
- new Text:Textdraw6;
- public OnFilterScriptInit()
- {
- print("Archivo de Textdraws generado utilizando");
- print(" Zamaroht's textdraw editor fue exitosamente cargado.");
- // Crear los textdraws:
- Textdraw0 = TextDrawCreate(640.000000, 347.000000, "BOX");
- TextDrawBackgroundColor(Textdraw0, 255);
- TextDrawFont(Textdraw0, 1);
- TextDrawLetterSize(Textdraw0, 0.000000, 5.299999);
- TextDrawColor(Textdraw0, 0);
- TextDrawSetOutline(Textdraw0, 0);
- TextDrawSetProportional(Textdraw0, 1);
- TextDrawSetShadow(Textdraw0, 1);
- TextDrawUseBox(Textdraw0, 1);
- TextDrawBoxColor(Textdraw0, 255);
- TextDrawTextSize(Textdraw0, 521.000000, 0.000000);
- Textdraw1 = TextDrawCreate(553.000000, 345.000000, "STATS");
- TextDrawBackgroundColor(Textdraw1, 255);
- TextDrawFont(Textdraw1, 1);
- TextDrawLetterSize(Textdraw1, 0.559999, 1.400000);
- TextDrawColor(Textdraw1, 16711935);
- TextDrawSetOutline(Textdraw1, 0);
- TextDrawSetProportional(Textdraw1, 1);
- TextDrawSetShadow(Textdraw1, 1);
- Textdraw2 = TextDrawCreate(529.000000, 362.000000, "Lvl:");
- TextDrawBackgroundColor(Textdraw2, 255);
- TextDrawFont(Textdraw2, 1);
- TextDrawLetterSize(Textdraw2, 0.559999, 1.400000);
- TextDrawColor(Textdraw2, -1);
- TextDrawSetOutline(Textdraw2, 0);
- TextDrawSetProportional(Textdraw2, 1);
- TextDrawSetShadow(Textdraw2, 1);
- Textdraw3 = TextDrawCreate(529.000000, 375.000000, "Exp:");
- TextDrawBackgroundColor(Textdraw3, 255);
- TextDrawFont(Textdraw3, 1);
- TextDrawLetterSize(Textdraw3, 0.559999, 1.400000);
- TextDrawColor(Textdraw3, -1);
- TextDrawSetOutline(Textdraw3, 0);
- TextDrawSetProportional(Textdraw3, 1);
- TextDrawSetShadow(Textdraw3, 1);
- Textdraw4 = TextDrawCreate(529.000000, 389.000000, "Muertes:");
- TextDrawBackgroundColor(Textdraw4, 255);
- TextDrawFont(Textdraw4, 1);
- TextDrawLetterSize(Textdraw4, 0.419999, 1.400000);
- TextDrawColor(Textdraw4, -1);
- TextDrawSetOutline(Textdraw4, 0);
- TextDrawSetProportional(Textdraw4, 1);
- TextDrawSetShadow(Textdraw4, 1);
- Textdraw5 = TextDrawCreate(529.000000, 400.000000, "Asesinatos:");
- TextDrawBackgroundColor(Textdraw5, 255);
- TextDrawFont(Textdraw5, 1);
- TextDrawLetterSize(Textdraw5, 0.419999, 1.400000);
- TextDrawColor(Textdraw5, -1);
- TextDrawSetOutline(Textdraw5, 0);
- TextDrawSetProportional(Textdraw5, 1);
- TextDrawSetShadow(Textdraw5, 1);
- Textdraw6 = TextDrawCreate(540.000000, 417.000000, "Barra de proceso");
- TextDrawBackgroundColor(Textdraw6, 255);
- TextDrawFont(Textdraw6, 1);
- TextDrawLetterSize(Textdraw6, 0.300000, 1.400000);
- TextDrawColor(Textdraw6, -1);
- TextDrawSetOutline(Textdraw6, 0);
- TextDrawSetProportional(Textdraw6, 1);
- TextDrawSetShadow(Textdraw6, 1);
- for(new i; i < MAX_PLAYERS; i ++)
- {
- if(IsPlayerConnected(i))
- {
- TextDrawShowForPlayer(i, Textdraw0);
- TextDrawShowForPlayer(i, Textdraw1);
- TextDrawShowForPlayer(i, Textdraw2);
- TextDrawShowForPlayer(i, Textdraw3);
- TextDrawShowForPlayer(i, Textdraw4);
- TextDrawShowForPlayer(i, Textdraw5);
- TextDrawShowForPlayer(i, Textdraw6);
- }
- }
- return 1;
- }
- public OnFilterScriptExit()
- {
- TextDrawHideForAll(Textdraw0);
- TextDrawDestroy(Textdraw0);
- TextDrawHideForAll(Textdraw1);
- TextDrawDestroy(Textdraw1);
- TextDrawHideForAll(Textdraw2);
- TextDrawDestroy(Textdraw2);
- TextDrawHideForAll(Textdraw3);
- TextDrawDestroy(Textdraw3);
- TextDrawHideForAll(Textdraw4);
- TextDrawDestroy(Textdraw4);
- TextDrawHideForAll(Textdraw5);
- TextDrawDestroy(Textdraw5);
- TextDrawHideForAll(Textdraw6);
- TextDrawDestroy(Textdraw6);
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- TextDrawShowForPlayer(playerid, Textdraw0);
- TextDrawShowForPlayer(playerid, Textdraw1);
- TextDrawShowForPlayer(playerid, Textdraw2);
- TextDrawShowForPlayer(playerid, Textdraw3);
- TextDrawShowForPlayer(playerid, Textdraw4);
- TextDrawShowForPlayer(playerid, Textdraw5);
- TextDrawShowForPlayer(playerid, Textdraw6);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement