OtaconEvil

[FS] Warning of Dead | Style GTA V By OTACON

Oct 19th, 2014
1,027
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*
  2.     * ## LEASE ATENTAMENTE PARA NO CONVERTIRSE EN LAMMER!!.: :D ##
  3.     *
  4.     * Estè Simple FILTERSCRIPT esta hecho especialmente para www.forum.sa-mp.com
  5.     * NO Publicar estè FILTERSCRIPT en Otros foros de SA-MP y hacerse pasar por el creador del CODE.
  6.     *
  7.     * Codigo Creado Por OTACON
  8.     *
  9.     * CREDITOS:
  10.     *     OTACON: Realizacion y Idea de creacion del code.
  11.     *     TÙ: Modificacion libremente respetando lo mencionado ;).
  12.     *
  13.     *    NOTA: Menos Creditos para los que me los critican.. JO'PUTAS! :D xD ;)
  14.     *
  15.     *                Prohibido TOTALMENTE el Robo de Créditos o la
  16.     *                  Publicación de este FILTERSCRIPT sin Mi Permiso.
  17. */
  18. /*
  19.     * ## READ CAREFULLY TO AVOID BECOMING LAMMER!.: :D ##
  20.     *
  21.     * This simple FILTERSCRIPT is made especially for www.forum.sa-mp.com
  22.     * DO NOT Post the FILTERSCRIPT in Other SAMP forums and impersonating the creator of the CODE.
  23.     *
  24.     * Code Created By OTACON
  25.     *
  26.     * CREDITS:
  27.     *     OTACON: Idea Making and code creation.
  28.     *     YOUR: Modification freely respecting the above ;).
  29.     *
  30.     *    NOTE: Less Credits for those who criticize me.. JO'PUTAS! :D xD ;)
  31.     *
  32.     *                        FULLY spaces Theft Credit or
  33.     *                 Publication of this FILTERSCRIPT without my permission.
  34. */
  35.  
  36. #include <a_samp>
  37. new PlayerText:ReasonDead[MAX_PLAYERS][4];
  38.  
  39. public OnPlayerConnect(playerid){
  40.  
  41.     for(new idx=0; idx<4; idx++){
  42.         PlayerTextDrawDestroy(playerid,ReasonDead[playerid][idx]);
  43.     }
  44.  
  45.     ReasonDead[playerid][0] = CreatePlayerTextDraw(playerid,720.125000, 175.333251, "usebox");
  46.     PlayerTextDrawLetterSize(playerid,ReasonDead[playerid][0], 0.000000, 10.465743);
  47.     PlayerTextDrawTextSize(playerid,ReasonDead[playerid][0], -18.875000, 0.000000);
  48.     PlayerTextDrawAlignment(playerid,ReasonDead[playerid][0], 1);
  49.     PlayerTextDrawColor(playerid,ReasonDead[playerid][0], 0);
  50.     PlayerTextDrawUseBox(playerid,ReasonDead[playerid][0], true);
  51.     PlayerTextDrawBoxColor(playerid,ReasonDead[playerid][0], 102);
  52.     PlayerTextDrawSetShadow(playerid,ReasonDead[playerid][0], 0);
  53.     PlayerTextDrawSetOutline(playerid,ReasonDead[playerid][0], 0);
  54.     PlayerTextDrawFont(playerid,ReasonDead[playerid][0], 0);
  55.  
  56.     ReasonDead[playerid][1] = CreatePlayerTextDraw(playerid,323.125000, 188.416610, "usebox");
  57.     PlayerTextDrawLetterSize(playerid,ReasonDead[playerid][1], 1.834375, 5.689165);
  58.     PlayerTextDrawAlignment(playerid,ReasonDead[playerid][1], 2);
  59.     PlayerTextDrawColor(playerid,ReasonDead[playerid][1], -1);
  60.     PlayerTextDrawSetShadow(playerid,ReasonDead[playerid][1], 0);
  61.     PlayerTextDrawSetOutline(playerid,ReasonDead[playerid][1], 1);
  62.     PlayerTextDrawBackgroundColor(playerid,ReasonDead[playerid][1], 51);
  63.     PlayerTextDrawFont(playerid,ReasonDead[playerid][1], 3);
  64.     PlayerTextDrawSetProportional(playerid,ReasonDead[playerid][1], 1);
  65.  
  66.     ReasonDead[playerid][2] = CreatePlayerTextDraw(playerid,315.625000, 242.083145, "usebox");
  67.     PlayerTextDrawLetterSize(playerid,ReasonDead[playerid][2], 0.248124, 1.220832);
  68.     PlayerTextDrawAlignment(playerid,ReasonDead[playerid][2], 2);
  69.     PlayerTextDrawColor(playerid,ReasonDead[playerid][2], -1);
  70.     PlayerTextDrawSetShadow(playerid,ReasonDead[playerid][2], 0);
  71.     PlayerTextDrawSetOutline(playerid,ReasonDead[playerid][2], 1);
  72.     PlayerTextDrawBackgroundColor(playerid,ReasonDead[playerid][2], 51);
  73.     PlayerTextDrawFont(playerid,ReasonDead[playerid][2], 2);
  74.     PlayerTextDrawSetProportional(playerid,ReasonDead[playerid][2], 1);
  75.  
  76.     ReasonDead[playerid][3] = CreatePlayerTextDraw(playerid,682.000000, -15.416666, "usebox");
  77.     PlayerTextDrawLetterSize(playerid,ReasonDead[playerid][3], 0.000000, 54.958797);
  78.     PlayerTextDrawTextSize(playerid,ReasonDead[playerid][3], -152.625000, 0.000000);
  79.     PlayerTextDrawAlignment(playerid,ReasonDead[playerid][3], 1);
  80.     PlayerTextDrawColor(playerid,ReasonDead[playerid][3], 0);
  81.     PlayerTextDrawUseBox(playerid,ReasonDead[playerid][3], true);
  82.     PlayerTextDrawBoxColor(playerid,ReasonDead[playerid][3], 102);
  83.     PlayerTextDrawSetShadow(playerid,ReasonDead[playerid][3], 0);
  84.     PlayerTextDrawSetOutline(playerid,ReasonDead[playerid][3], 0);
  85.     PlayerTextDrawFont(playerid,ReasonDead[playerid][3], 0);
  86.  
  87.     return true;
  88. }
  89.  
  90. public OnPlayerDeath(playerid, killerid, reason){
  91.  
  92.     if(playerid != INVALID_PLAYER_ID){
  93.         new data[100],dead[20];
  94.         switch(reason){
  95.             case 54:                    {dead="committed suicide";}
  96.             case 49:                    {dead="run over";}
  97.             case 50,8,9:                {dead="destroyed";}
  98.             case 53:                    {dead="drowned";}
  99.             case 16,18,35,36,37,51,255: {dead="burned";}
  100.             case 4:                     {dead="killed";}
  101.             case 0..3,5..7,10..15:      {dead="kicked";}
  102.             case 22..32:                {dead="fired";}
  103.             case 38:                    {dead="I shot";}
  104.             case 33,34:                 {dead="eliminated";}
  105.             case 39:                    {dead="exploited";}
  106.             default :                   {dead="injured";}
  107.         }
  108.         for(new idx=0; idx<4; idx++){
  109.             PlayerTextDrawShow(playerid,ReasonDead[playerid][idx]);
  110.         }
  111.  
  112.         PlayerTextDrawSetString(playerid,ReasonDead[playerid][1],"~r~eliminated!");
  113.         switch(reason){
  114.             case 54,53,16,18,35,36,37,51:                   {format(data,sizeof(data),"~w~you have ~r~%s",dead);}
  115.             case 49,50,8,9,4,0..3,5..7,10..15,38,33,34,39:  {format(data,sizeof(data),"~w~they have ~r~%s",dead);}
  116.             default :                                       {format(data,sizeof(data),"~w~you have ~r~%s",dead);}
  117.         }
  118.         PlayerTextDrawSetString(playerid,ReasonDead[playerid][2],data);
  119.     }
  120.  
  121.     return true;
  122. }
  123.  
  124. public OnPlayerSpawn(playerid){
  125.  
  126.     for(new idx=0; idx<4; idx++){
  127.         PlayerTextDrawHide(playerid,ReasonDead[playerid][idx]);
  128.     }
  129.  
  130.     return true;
  131. }
RAW Paste Data