Advertisement
JPeedro

Tela de Morte 3.0

Jan 5th, 2016
708
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 5.05 KB | None | 0 0
  1. /* =====================================
  2.  
  3. Tela de Morte estilo GTA 5 criado por: JPedro
  4.  
  5. Por favor manter os créditos :)
  6.  
  7. ======================================== */
  8.  
  9. #include <a_samp>
  10.  
  11. #if defined FILTERSCRIPT
  12. #endif
  13.  
  14. new PlayerText:TELA_DE_MORTE[MAX_PLAYERS][4];
  15.  
  16. public OnFilterScriptInit()
  17. {
  18.     print("\n\n\n\nTELA DE MORTE GTA 5 - Carregado com Sucesso!");
  19.     return 1;
  20. }
  21.  
  22. public OnFilterScriptExit()
  23. {
  24.     return 1;
  25. }
  26.  
  27. public OnPlayerConnect(playerid)
  28. {
  29.     LoadPlayerTextDraw(playerid);
  30.     return 1;
  31. }
  32.  
  33. public OnPlayerDeath(playerid, killerid, reason)
  34. {
  35.     new string[128];
  36.     switch(reason)
  37.     {
  38.         case 0..15: format(string, sizeof(string),"~r~%s ~w~TE SOCOU ATE A MORTE",PegarNome(killerid));
  39.         case 18,37: format(string, sizeof(string),"~r~%s ~w~FEZ VOCE QUEIMAR ATE A MORTE",PegarNome(killerid));
  40.         case 22..24: format(string, sizeof(string),"~r~%s ~w~ENCHEU VOCE DE AZEITONA",PegarNome(killerid));
  41.         case 25..27: format(string, sizeof(string),"~r~%s ~w~MANDOU CHUMBO EM VOCE",PegarNome(killerid));
  42.         case 28..32: format(string, sizeof(string),"~r~%s ~w~FUZILOU VOCE ATE A MORTE",PegarNome(killerid));
  43.         case 33,34: format(string, sizeof(string),"~r~%s ~w~MANDOU BALA COM PRECISAO EM VOCE",PegarNome(killerid));
  44.         case 17,41,42: format(string, sizeof(string),"~r~%s ~w~JOGOU FUMACA EM VOCE ATE A MORTE",PegarNome(killerid));
  45.         case 53: string = "~w~VOCE FOI DORMIR COM OS PEIXES";
  46.         default: string = "~w~VOCE COMETEU SUICIDIO";
  47.     }
  48.     PlayerTextDrawSetString(playerid, TELA_DE_MORTE[playerid][3], string);
  49.     for(new i = 0; i < 4; i++) PlayerTextDrawShow(playerid, TELA_DE_MORTE[playerid][i]);
  50.     return 1;
  51. }
  52.  
  53. public OnPlayerSpawn(playerid)
  54. {
  55.     for(new i = 0; i < 4; i++) PlayerTextDrawHide(playerid, TELA_DE_MORTE[playerid][i]);
  56.     return 1;
  57. }
  58.  
  59. stock LoadPlayerTextDraw(playerid)
  60. {
  61.     TELA_DE_MORTE[playerid][0] = CreatePlayerTextDraw(playerid,670.000000, 0.000000, "_");
  62.     PlayerTextDrawBackgroundColor(playerid,TELA_DE_MORTE[playerid][0], 255);
  63.     PlayerTextDrawFont(playerid,TELA_DE_MORTE[playerid][0], 1);
  64.     PlayerTextDrawLetterSize(playerid,TELA_DE_MORTE[playerid][0], 0.500000, 52.000000);
  65.     PlayerTextDrawColor(playerid,TELA_DE_MORTE[playerid][0], -1);
  66.     PlayerTextDrawSetOutline(playerid,TELA_DE_MORTE[playerid][0], 0);
  67.     PlayerTextDrawSetProportional(playerid,TELA_DE_MORTE[playerid][0], 1);
  68.     PlayerTextDrawSetShadow(playerid,TELA_DE_MORTE[playerid][0], 1);
  69.     PlayerTextDrawUseBox(playerid,TELA_DE_MORTE[playerid][0], 1);
  70.     PlayerTextDrawBoxColor(playerid,TELA_DE_MORTE[playerid][0], 68);
  71.     PlayerTextDrawTextSize(playerid,TELA_DE_MORTE[playerid][0], -30.000000, 0.000000);
  72.     PlayerTextDrawSetSelectable(playerid,TELA_DE_MORTE[playerid][0], 0);
  73.  
  74.     TELA_DE_MORTE[playerid][1] = CreatePlayerTextDraw(playerid,670.000000, 155.000000, "_");
  75.     PlayerTextDrawBackgroundColor(playerid,TELA_DE_MORTE[playerid][1], 255);
  76.     PlayerTextDrawFont(playerid,TELA_DE_MORTE[playerid][1], 1);
  77.     PlayerTextDrawLetterSize(playerid,TELA_DE_MORTE[playerid][1], 0.500000, 13.399990);
  78.     PlayerTextDrawColor(playerid,TELA_DE_MORTE[playerid][1], -1);
  79.     PlayerTextDrawSetOutline(playerid,TELA_DE_MORTE[playerid][1], 0);
  80.     PlayerTextDrawSetProportional(playerid,TELA_DE_MORTE[playerid][1], 1);
  81.     PlayerTextDrawSetShadow(playerid,TELA_DE_MORTE[playerid][1], 1);
  82.     PlayerTextDrawUseBox(playerid,TELA_DE_MORTE[playerid][1], 1);
  83.     PlayerTextDrawBoxColor(playerid,TELA_DE_MORTE[playerid][1], 153);
  84.     PlayerTextDrawTextSize(playerid,TELA_DE_MORTE[playerid][1], -40.000000, 0.000000);
  85.     PlayerTextDrawSetSelectable(playerid,TELA_DE_MORTE[playerid][1], 0);
  86.  
  87.     TELA_DE_MORTE[playerid][2] = CreatePlayerTextDraw(playerid,317.000000, 159.000000, "~r~SE FODEU");
  88.     PlayerTextDrawAlignment(playerid,TELA_DE_MORTE[playerid][2], 2);
  89.     PlayerTextDrawBackgroundColor(playerid,TELA_DE_MORTE[playerid][2], 255);
  90.     PlayerTextDrawFont(playerid,TELA_DE_MORTE[playerid][2], 3);
  91.     PlayerTextDrawLetterSize(playerid,TELA_DE_MORTE[playerid][2], 2.109999, 9.799997);
  92.     PlayerTextDrawColor(playerid,TELA_DE_MORTE[playerid][2], -1);
  93.     PlayerTextDrawSetOutline(playerid,TELA_DE_MORTE[playerid][2], 0);
  94.     PlayerTextDrawSetProportional(playerid,TELA_DE_MORTE[playerid][2], 1);
  95.     PlayerTextDrawSetShadow(playerid,TELA_DE_MORTE[playerid][2], 0);
  96.     PlayerTextDrawSetSelectable(playerid,TELA_DE_MORTE[playerid][2], 0);
  97.  
  98.     TELA_DE_MORTE[playerid][3] = CreatePlayerTextDraw(playerid,318.000000, 254.000000, "~r~Nome_Sobrenome ~w~mandou bala com precisao em voce.");
  99.     PlayerTextDrawAlignment(playerid,TELA_DE_MORTE[playerid][3], 2);
  100.     PlayerTextDrawBackgroundColor(playerid,TELA_DE_MORTE[playerid][3], 255);
  101.     PlayerTextDrawFont(playerid,TELA_DE_MORTE[playerid][3], 2);
  102.     PlayerTextDrawLetterSize(playerid,TELA_DE_MORTE[playerid][3], 0.289999, 1.700000);
  103.     PlayerTextDrawColor(playerid,TELA_DE_MORTE[playerid][3], -1);
  104.     PlayerTextDrawSetOutline(playerid,TELA_DE_MORTE[playerid][3], 1);
  105.     PlayerTextDrawSetProportional(playerid,TELA_DE_MORTE[playerid][3], 1);
  106.     PlayerTextDrawSetSelectable(playerid,TELA_DE_MORTE[playerid][3], 0);
  107.  
  108.     return 1;
  109. }
  110.  
  111. stock PegarNome(playerid)
  112. {
  113.     new name[MAX_PLAYER_NAME];
  114.     GetPlayerName(playerid, name, MAX_PLAYER_NAME);
  115.     return name;
  116. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement