OtaconEvil

[FS] Advertencia de muerte | Estilo GTA V By OTACON

Oct 19th, 2014
768
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. public OnPlayerConnect(playerid){
  39.  
  40.     for(new idx=0; idx<4; idx++){
  41.         PlayerTextDrawDestroy(playerid,ReasonDead[playerid][idx]);
  42.     }
  43.  
  44.     ReasonDead[playerid][0] = CreatePlayerTextDraw(playerid,720.125000, 175.333251, "usebox");
  45.     PlayerTextDrawLetterSize(playerid,ReasonDead[playerid][0], 0.000000, 10.465743);
  46.     PlayerTextDrawTextSize(playerid,ReasonDead[playerid][0], -18.875000, 0.000000);
  47.     PlayerTextDrawAlignment(playerid,ReasonDead[playerid][0], 1);
  48.     PlayerTextDrawColor(playerid,ReasonDead[playerid][0], 0);
  49.     PlayerTextDrawUseBox(playerid,ReasonDead[playerid][0], true);
  50.     PlayerTextDrawBoxColor(playerid,ReasonDead[playerid][0], 102);
  51.     PlayerTextDrawSetShadow(playerid,ReasonDead[playerid][0], 0);
  52.     PlayerTextDrawSetOutline(playerid,ReasonDead[playerid][0], 0);
  53.     PlayerTextDrawFont(playerid,ReasonDead[playerid][0], 0);
  54.  
  55.     ReasonDead[playerid][1] = CreatePlayerTextDraw(playerid,323.125000, 188.416610, "usebox");
  56.     PlayerTextDrawLetterSize(playerid,ReasonDead[playerid][1], 1.834375, 5.689165);
  57.     PlayerTextDrawAlignment(playerid,ReasonDead[playerid][1], 2);
  58.     PlayerTextDrawColor(playerid,ReasonDead[playerid][1], -1);
  59.     PlayerTextDrawSetShadow(playerid,ReasonDead[playerid][1], 0);
  60.     PlayerTextDrawSetOutline(playerid,ReasonDead[playerid][1], 1);
  61.     PlayerTextDrawBackgroundColor(playerid,ReasonDead[playerid][1], 51);
  62.     PlayerTextDrawFont(playerid,ReasonDead[playerid][1], 3);
  63.     PlayerTextDrawSetProportional(playerid,ReasonDead[playerid][1], 1);
  64.  
  65.     ReasonDead[playerid][2] = CreatePlayerTextDraw(playerid,315.625000, 242.083145, "usebox");
  66.     PlayerTextDrawLetterSize(playerid,ReasonDead[playerid][2], 0.248124, 1.220832);
  67.     PlayerTextDrawAlignment(playerid,ReasonDead[playerid][2], 2);
  68.     PlayerTextDrawColor(playerid,ReasonDead[playerid][2], -1);
  69.     PlayerTextDrawSetShadow(playerid,ReasonDead[playerid][2], 0);
  70.     PlayerTextDrawSetOutline(playerid,ReasonDead[playerid][2], 1);
  71.     PlayerTextDrawBackgroundColor(playerid,ReasonDead[playerid][2], 51);
  72.     PlayerTextDrawFont(playerid,ReasonDead[playerid][2], 2);
  73.     PlayerTextDrawSetProportional(playerid,ReasonDead[playerid][2], 1);
  74.  
  75.     ReasonDead[playerid][3] = CreatePlayerTextDraw(playerid,682.000000, -15.416666, "usebox");
  76.     PlayerTextDrawLetterSize(playerid,ReasonDead[playerid][3], 0.000000, 54.958797);
  77.     PlayerTextDrawTextSize(playerid,ReasonDead[playerid][3], -152.625000, 0.000000);
  78.     PlayerTextDrawAlignment(playerid,ReasonDead[playerid][3], 1);
  79.     PlayerTextDrawColor(playerid,ReasonDead[playerid][3], 0);
  80.     PlayerTextDrawUseBox(playerid,ReasonDead[playerid][3], true);
  81.     PlayerTextDrawBoxColor(playerid,ReasonDead[playerid][3], 102);
  82.     PlayerTextDrawSetShadow(playerid,ReasonDead[playerid][3], 0);
  83.     PlayerTextDrawSetOutline(playerid,ReasonDead[playerid][3], 0);
  84.     PlayerTextDrawFont(playerid,ReasonDead[playerid][3], 0);
  85.  
  86.     return true;
  87. }
  88.  
  89. public OnPlayerDeath(playerid, killerid, reason){
  90.  
  91.     if(playerid != INVALID_PLAYER_ID){
  92.         new data[100],dead[20];
  93.         switch(reason){
  94.             case 54:                    {dead="suicidado";}
  95.             case 49:                    {dead="atropellado";}
  96.             case 50,8,9:                {dead="tritulado";}
  97.             case 53:                    {dead="ahogado";}
  98.             case 16,18,35,36,37,51,255: {dead="quemado";}
  99.             case 4:                     {dead="asesinado";}
  100.             case 0..3,5..7,10..15:      {dead="golpeado";}
  101.             case 22..32:                {dead="disparado";}
  102.             case 38:                    {dead="fusilado";}
  103.             case 33,34:                 {dead="eliminado";}
  104.             case 39:                    {dead="explotado";}
  105.             default :                   {dead="herido";}
  106.         }
  107.         for(new idx=0; idx<4; idx++){
  108.             PlayerTextDrawShow(playerid,ReasonDead[playerid][idx]);
  109.         }
  110.        
  111.         PlayerTextDrawSetString(playerid,ReasonDead[playerid][1],"~r~eliminado!");
  112.         switch(reason){
  113.             case 54,53,16,18,35,36,37,51:                   {format(data,sizeof(data),"~w~te has ~r~%s",dead);}
  114.             case 49,50,8,9,4,0..3,5..7,10..15,38,33,34,39:  {format(data,sizeof(data),"~w~te han ~r~%s",dead);}
  115.             default :                                       {format(data,sizeof(data),"~w~te has ~r~%s",dead);}
  116.         }
  117.         PlayerTextDrawSetString(playerid,ReasonDead[playerid][2],data);
  118.     }
  119.    
  120.     return true;
  121. }
  122.  
  123. public OnPlayerSpawn(playerid){
  124.  
  125.     for(new idx=0; idx<4; idx++){
  126.         PlayerTextDrawHide(playerid,ReasonDead[playerid][idx]);
  127.     }
  128.  
  129.     return true;
  130. }
RAW Paste Data