OtaconEvil

[FS] Nueva Pantalla Login (TextDraw) V1.0

Jul 9th, 2013
545
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 9.78 KB | None | 0 0
  1. /*
  2.              Prohibido TOTALMENTE el Robo de Créditos o la
  3.                  Publicación de este FS sin Mi Permiso.
  4. */
  5. /////////////////////////////////////////////////////////////////////////////////////
  6. /////////////////////////////////////////////////////////////////////////////////////
  7. /*
  8.     ----------------------------------------------------------
  9.     | [FS] --<  'Nueva Pantalla Login (TextDraw)'  >-- V1.0  |
  10.     |                                                        |
  11.     |               Creado Por ØTACØN - 2012                 |
  12.     ----------------------------------------------------------
  13.     ----------------------------------------------------------
  14.     |      FS CREADO PARA LOS USUARIOS NOVATOS EN PAWNO      |
  15.     ----------------------------------------------------------
  16. */
  17. /////////////////////////////////////////////////////////////////////////////////////
  18. /////////////////////////////////////////////////////////////////////////////////////
  19.  
  20. #include <a_samp>
  21. new Text:Conectados[12];
  22.  
  23. public OnFilterScriptInit()
  24. {
  25.     Conectados[1] = TextDrawCreate(0.000000, 2.000000, "_");
  26.     TextDrawBackgroundColor(Conectados[1], 255);
  27.     TextDrawFont(Conectados[1], 1);
  28.     TextDrawLetterSize(Conectados[1], 14.730020, 13.000000);
  29.     TextDrawColor(Conectados[1], -1);
  30.     TextDrawSetOutline(Conectados[1], 0);
  31.     TextDrawSetProportional(Conectados[1], 1);
  32.     TextDrawSetShadow(Conectados[1], 1);
  33.     TextDrawUseBox(Conectados[1], 1);
  34.     TextDrawBoxColor(Conectados[1], 255);
  35.     TextDrawTextSize(Conectados[1], 770.000000, 0.000000);
  36.  
  37.     Conectados[2] = TextDrawCreate(0.000000, 329.000000, "_");
  38.     TextDrawBackgroundColor(Conectados[2], 255);
  39.     TextDrawFont(Conectados[2], 1);
  40.     TextDrawLetterSize(Conectados[2], 14.730020, 13.000000);
  41.     TextDrawColor(Conectados[2], -1);
  42.     TextDrawSetOutline(Conectados[2], 0);
  43.     TextDrawSetProportional(Conectados[2], 1);
  44.     TextDrawSetShadow(Conectados[2], 1);
  45.     TextDrawUseBox(Conectados[2], 1);
  46.     TextDrawBoxColor(Conectados[2], 255);
  47.     TextDrawTextSize(Conectados[2], 770.000000, 0.000000);
  48.  
  49.     Conectados[3] = TextDrawCreate(0.000000, 122.000000, "_");
  50.     TextDrawBackgroundColor(Conectados[3], 255);
  51.     TextDrawFont(Conectados[3], 1);
  52.     TextDrawLetterSize(Conectados[3], 14.730020, 0.199999);
  53.     TextDrawColor(Conectados[3], -1);
  54.     TextDrawSetOutline(Conectados[3], 0);
  55.     TextDrawSetProportional(Conectados[3], 1);
  56.     TextDrawSetShadow(Conectados[3], 1);
  57.     TextDrawUseBox(Conectados[3], 1);
  58.     TextDrawBoxColor(Conectados[3], 0xFF9200FF);
  59.     TextDrawTextSize(Conectados[3], 770.000000, 0.000000);
  60.  
  61.     Conectados[4] = TextDrawCreate(0.000000, 324.000000, "_");
  62.     TextDrawBackgroundColor(Conectados[4], 255);
  63.     TextDrawFont(Conectados[4], 1);
  64.     TextDrawLetterSize(Conectados[4], 14.730020, 0.199999);
  65.     TextDrawColor(Conectados[4], -1);
  66.     TextDrawSetOutline(Conectados[4], 0);
  67.     TextDrawSetProportional(Conectados[4], 1);
  68.     TextDrawSetShadow(Conectados[4], 1);
  69.     TextDrawUseBox(Conectados[4], 1);
  70.     TextDrawBoxColor(Conectados[4], 0xFF9200FF);
  71.     TextDrawTextSize(Conectados[4], 770.000000, 0.000000);
  72.  
  73.     Conectados[5] = TextDrawCreate(537.000000, 336.000000, "_");
  74.     TextDrawAlignment(Conectados[5], 2);
  75.     TextDrawBackgroundColor(Conectados[5], 255);
  76.     TextDrawFont(Conectados[5], 2);
  77.     TextDrawLetterSize(Conectados[5], 0.230000, 1.600001);
  78.     TextDrawColor(Conectados[5], 0xFF9200FF);
  79.     TextDrawSetOutline(Conectados[5], 1);
  80.     TextDrawSetProportional(Conectados[5], 1);
  81.  
  82.     Conectados[6] = TextDrawCreate(192.000000, 392.000000, "TeamSpeak 3: ~w~TS.Gamerol.Net");
  83.     TextDrawAlignment(Conectados[6], 2);
  84.     TextDrawBackgroundColor(Conectados[6], 255);
  85.     TextDrawFont(Conectados[6], 2);
  86.     TextDrawLetterSize(Conectados[6], 0.360000, 3.400002);
  87.     TextDrawColor(Conectados[6], 0xFF9200FF);
  88.     TextDrawSetOutline(Conectados[6], 1);
  89.     TextDrawSetProportional(Conectados[6], 1);
  90.  
  91.     Conectados[7] = TextDrawCreate(458.000000, 392.000000, "Pagina Web: ~w~Gamerol.Net");
  92.     TextDrawAlignment(Conectados[7], 2);
  93.     TextDrawBackgroundColor(Conectados[7], 255);
  94.     TextDrawFont(Conectados[7], 2);
  95.     TextDrawLetterSize(Conectados[7], 0.360000, 3.400002);
  96.     TextDrawColor(Conectados[7], 0xFF9200FF);
  97.     TextDrawSetOutline(Conectados[7], 1);
  98.     TextDrawSetProportional(Conectados[7], 1);
  99.  
  100.     Conectados[8] = TextDrawCreate(321.000000, 29.000000, "Gamerol ~w~Roleplay");
  101.     TextDrawAlignment(Conectados[8], 2);
  102.     TextDrawBackgroundColor(Conectados[8], 255);
  103.     TextDrawFont(Conectados[8], 2);
  104.     TextDrawLetterSize(Conectados[8], 1.100000, 6.700001);
  105.     TextDrawColor(Conectados[8], 0xFF9200FF);
  106.     TextDrawSetOutline(Conectados[8], 1);
  107.     TextDrawSetProportional(Conectados[8], 1);
  108.  
  109.     Conectados[9] = TextDrawCreate(319.000000, 341.000000, "] ] ]");
  110.     TextDrawAlignment(Conectados[9], 2);
  111.     TextDrawBackgroundColor(Conectados[9], 255);
  112.     TextDrawFont(Conectados[9], 2);
  113.     TextDrawLetterSize(Conectados[9], 1.100000, 4.600001);
  114.     TextDrawColor(Conectados[9], 0xFF9200FF);
  115.     TextDrawSetOutline(Conectados[9], 1);
  116.     TextDrawSetProportional(Conectados[9], 1);
  117.  
  118.     Conectados[10] = TextDrawCreate(307.000000, 86.000000, "~y~] ] ] ~w~Mas Que Un Servidor ~y~] ] ]");
  119.     TextDrawAlignment(Conectados[10], 2);
  120.     TextDrawBackgroundColor(Conectados[10], 255);
  121.     TextDrawFont(Conectados[10], 2);
  122.     TextDrawLetterSize(Conectados[10], 0.360000, 1.800001);
  123.     TextDrawColor(Conectados[10], -1);
  124.     TextDrawSetOutline(Conectados[10], 1);
  125.     TextDrawSetProportional(Conectados[10], 1);
  126.  
  127.     Conectados[11] = TextDrawCreate(90.000000, 336.000000, "_");
  128.     TextDrawAlignment(Conectados[11], 2);
  129.     TextDrawBackgroundColor(Conectados[11], 255);
  130.     TextDrawFont(Conectados[11], 2);
  131.     TextDrawLetterSize(Conectados[11], 0.230000, 1.600001);
  132.     TextDrawColor(Conectados[11], 0xFF9200FF);
  133.     TextDrawSetOutline(Conectados[11], 1);
  134.     TextDrawSetProportional(Conectados[11], 1);
  135.    
  136.     SetTimer("Conectados_OnLine",2000,true);
  137.     return 1;
  138. }
  139.  
  140. public OnPlayerConnect(playerid)
  141. {
  142.     TextDrawShowForPlayer(playerid, Conectados[1]);
  143.     TextDrawShowForPlayer(playerid, Conectados[2]);
  144.     TextDrawShowForPlayer(playerid, Conectados[3]);
  145.     TextDrawShowForPlayer(playerid, Conectados[4]);
  146.     TextDrawShowForPlayer(playerid, Conectados[5]);
  147.     TextDrawShowForPlayer(playerid, Conectados[6]);
  148.     TextDrawShowForPlayer(playerid, Conectados[7]);
  149.     TextDrawShowForPlayer(playerid, Conectados[8]);
  150.     TextDrawShowForPlayer(playerid, Conectados[9]);
  151.     TextDrawShowForPlayer(playerid, Conectados[10]);
  152.     TextDrawShowForPlayer(playerid, Conectados[11]);
  153.     return 1;
  154. }
  155.  
  156. public OnPlayerSpawn(playerid)
  157. {
  158.     TextDrawHideForPlayer(playerid, Conectados[1]);
  159.     TextDrawDestroy(Conectados[1]);
  160.     TextDrawHideForPlayer(playerid, Conectados[2]);
  161.     TextDrawDestroy(Conectados[2]);
  162.     TextDrawHideForPlayer(playerid, Conectados[3]);
  163.     TextDrawDestroy(Conectados[3]);
  164.     TextDrawHideForPlayer(playerid, Conectados[4]);
  165.     TextDrawDestroy(Conectados[4]);
  166.     TextDrawHideForPlayer(playerid, Conectados[5]);
  167.     TextDrawDestroy(Conectados[5]);
  168.     TextDrawHideForPlayer(playerid, Conectados[6]);
  169.     TextDrawDestroy(Conectados[6]);
  170.     TextDrawHideForPlayer(playerid, Conectados[7]);
  171.     TextDrawDestroy(Conectados[7]);
  172.     TextDrawHideForPlayer(playerid, Conectados[8]);
  173.     TextDrawDestroy(Conectados[8]);
  174.     TextDrawHideForPlayer(playerid, Conectados[9]);
  175.     TextDrawDestroy(Conectados[9]);
  176.     TextDrawHideForPlayer(playerid, Conectados[10]);
  177.     TextDrawDestroy(Conectados[10]);
  178.     TextDrawHideForPlayer(playerid, Conectados[11]);
  179.     TextDrawDestroy(Conectados[11]);
  180.     return 1;
  181. }
  182.  
  183. public OnPlayerDisconnect(playerid, reason)
  184. {
  185.     TextDrawHideForPlayer(playerid, Conectados[1]);
  186.     TextDrawDestroy(Conectados[1]);
  187.     TextDrawHideForPlayer(playerid, Conectados[2]);
  188.     TextDrawDestroy(Conectados[2]);
  189.     TextDrawHideForPlayer(playerid, Conectados[3]);
  190.     TextDrawDestroy(Conectados[3]);
  191.     TextDrawHideForPlayer(playerid, Conectados[4]);
  192.     TextDrawDestroy(Conectados[4]);
  193.     TextDrawHideForPlayer(playerid, Conectados[5]);
  194.     TextDrawDestroy(Conectados[5]);
  195.     TextDrawHideForPlayer(playerid, Conectados[6]);
  196.     TextDrawDestroy(Conectados[6]);
  197.     TextDrawHideForPlayer(playerid, Conectados[7]);
  198.     TextDrawDestroy(Conectados[7]);
  199.     TextDrawHideForPlayer(playerid, Conectados[8]);
  200.     TextDrawDestroy(Conectados[8]);
  201.     TextDrawHideForPlayer(playerid, Conectados[9]);
  202.     TextDrawDestroy(Conectados[9]);
  203.     TextDrawHideForPlayer(playerid, Conectados[10]);
  204.     TextDrawDestroy(Conectados[10]);
  205.     TextDrawHideForPlayer(playerid, Conectados[11]);
  206.     TextDrawDestroy(Conectados[11]);
  207.     return 1;
  208. }
  209.  
  210. stock Usuarios()
  211. {
  212.     new OnLine;
  213.     for(new i, g = GetMaxPlayers(); i < g; i++)
  214.     {
  215.         if(IsPlayerConnected(i))
  216.         {
  217.             OnLine++;
  218.         }
  219.     }
  220.     return OnLine;
  221. }
  222.  
  223. forward Conectados_OnLine(playerid);
  224. public Conectados_OnLine(playerid)
  225. {
  226.     new str[128];
  227.     new Name[MAX_PLAYER_NAME];
  228.     GetPlayerName(playerid,Name, sizeof Name);
  229.  
  230.     format(str,sizeof(str),"Player: ~w~%s", Name);
  231.     TextDrawSetString(Conectados[11], str);
  232.    
  233.     format(str,sizeof(str),"Usuarios Conectados: ~w~%i", Usuarios());
  234.     TextDrawSetString(Conectados[5], str);
  235.     return 1;
  236. }
  237.  
  238. /////////////////////////////////////////////////////////////////////////////////////
  239. /////////////////////////////////////////////////////////////////////////////////////
  240. /*
  241.     ----------------------------------------------------------
  242.     | [FS] --<  'Nueva Pantalla Login (TextDraw)'  >-- V1.0  |
  243.     |                                                        |
  244.     |               Creado Por ØTACØN - 2012                 |
  245.     ----------------------------------------------------------
  246.     ----------------------------------------------------------
  247.     |      FS CREADO PARA LOS USUARIOS NOVATOS EN PAWNO      |
  248.     ----------------------------------------------------------
  249. */
  250. /////////////////////////////////////////////////////////////////////////////////////
  251. /////////////////////////////////////////////////////////////////////////////////////
  252. /*
  253.              Prohibido TOTALMENTE el Robo de Créditos o la
  254.                  Publicación de este FS sin Mi Permiso.
  255. */
Advertisement
Add Comment
Please, Sign In to add comment