Advertisement
OtaconEvil

[FS] Avisos Morte | GTA V Estilo By OTACON [PT]

Oct 22nd, 2014
1,586
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 5.12 KB | None | 0 0
  1. /*
  2.     * ## READ CAREFULLY TO AVOID BECOMING LAMMER!.: :D ##
  3.     *
  4.     * This simple FILTERSCRIPT is made especially for www.forum.sa-mp.com
  5.     * DO NOT Post the FILTERSCRIPT in Other SAMP forums and impersonating the creator of the CODE.
  6.     *
  7.     * Code Created By OTACON
  8.     *
  9.     * CREDITS:
  10.     *     OTACON: Idea Making and code creation.
  11.     *     YOUR: Modification freely respecting the above ;).
  12.     *
  13.     *    NOTE: Less Credits for those who criticize me.. JO'PUTAS! :D xD ;)
  14.     *
  15.     *                        FULLY spaces Theft Credit or
  16.     *                 Publication of this FILTERSCRIPT without my permission.
  17. */
  18.  
  19. #include <a_samp>
  20. new PlayerText:MotivoMorto[MAX_PLAYERS][4];
  21.  
  22. public OnPlayerConnect(playerid){
  23.  
  24.     for(new idx=0; idx<4; idx++){
  25.         PlayerTextDrawDestroy(playerid,MotivoMorto[playerid][idx]);
  26.     }
  27.  
  28.     MotivoMorto[playerid][0] = CreatePlayerTextDraw(playerid,720.125000, 175.333251, "usebox");
  29.     PlayerTextDrawLetterSize(playerid,MotivoMorto[playerid][0], 0.000000, 10.465743);
  30.     PlayerTextDrawTextSize(playerid,MotivoMorto[playerid][0], -18.875000, 0.000000);
  31.     PlayerTextDrawAlignment(playerid,MotivoMorto[playerid][0], 1);
  32.     PlayerTextDrawColor(playerid,MotivoMorto[playerid][0], 0);
  33.     PlayerTextDrawUseBox(playerid,MotivoMorto[playerid][0], true);
  34.     PlayerTextDrawBoxColor(playerid,MotivoMorto[playerid][0], 102);
  35.     PlayerTextDrawSetShadow(playerid,MotivoMorto[playerid][0], 0);
  36.     PlayerTextDrawSetOutline(playerid,MotivoMorto[playerid][0], 0);
  37.     PlayerTextDrawFont(playerid,MotivoMorto[playerid][0], 0);
  38.  
  39.     MotivoMorto[playerid][1] = CreatePlayerTextDraw(playerid,323.125000, 188.416610, "usebox");
  40.     PlayerTextDrawLetterSize(playerid,MotivoMorto[playerid][1], 1.834375, 5.689165);
  41.     PlayerTextDrawAlignment(playerid,MotivoMorto[playerid][1], 2);
  42.     PlayerTextDrawColor(playerid,MotivoMorto[playerid][1], -1);
  43.     PlayerTextDrawSetShadow(playerid,MotivoMorto[playerid][1], 0);
  44.     PlayerTextDrawSetOutline(playerid,MotivoMorto[playerid][1], 1);
  45.     PlayerTextDrawBackgroundColor(playerid,MotivoMorto[playerid][1], 51);
  46.     PlayerTextDrawFont(playerid,MotivoMorto[playerid][1], 3);
  47.     PlayerTextDrawSetProportional(playerid,MotivoMorto[playerid][1], 1);
  48.  
  49.     MotivoMorto[playerid][2] = CreatePlayerTextDraw(playerid,315.625000, 242.083145, "usebox");
  50.     PlayerTextDrawLetterSize(playerid,MotivoMorto[playerid][2], 0.248124, 1.220832);
  51.     PlayerTextDrawAlignment(playerid,MotivoMorto[playerid][2], 2);
  52.     PlayerTextDrawColor(playerid,MotivoMorto[playerid][2], -1);
  53.     PlayerTextDrawSetShadow(playerid,MotivoMorto[playerid][2], 0);
  54.     PlayerTextDrawSetOutline(playerid,MotivoMorto[playerid][2], 1);
  55.     PlayerTextDrawBackgroundColor(playerid,MotivoMorto[playerid][2], 51);
  56.     PlayerTextDrawFont(playerid,MotivoMorto[playerid][2], 2);
  57.     PlayerTextDrawSetProportional(playerid,MotivoMorto[playerid][2], 1);
  58.  
  59.     MotivoMorto[playerid][3] = CreatePlayerTextDraw(playerid,682.000000, -15.416666, "usebox");
  60.     PlayerTextDrawLetterSize(playerid,MotivoMorto[playerid][3], 0.000000, 54.958797);
  61.     PlayerTextDrawTextSize(playerid,MotivoMorto[playerid][3], -152.625000, 0.000000);
  62.     PlayerTextDrawAlignment(playerid,MotivoMorto[playerid][3], 1);
  63.     PlayerTextDrawColor(playerid,MotivoMorto[playerid][3], 0);
  64.     PlayerTextDrawUseBox(playerid,MotivoMorto[playerid][3], true);
  65.     PlayerTextDrawBoxColor(playerid,MotivoMorto[playerid][3], 102);
  66.     PlayerTextDrawSetShadow(playerid,MotivoMorto[playerid][3], 0);
  67.     PlayerTextDrawSetOutline(playerid,MotivoMorto[playerid][3], 0);
  68.     PlayerTextDrawFont(playerid,MotivoMorto[playerid][3], 0);
  69.    
  70.     return true;
  71. }
  72.  
  73. public OnPlayerDeath(playerid, killerid, reason){
  74.  
  75.     if(playerid != INVALID_PLAYER_ID){
  76.         new data[100],morto[20];
  77.         switch(reason){
  78.             case 54:                    {morto="suicidou-se";}
  79.             case 49:                    {morto="atropellado";}
  80.             case 50,8,9:                {morto="Eu tritulado";}
  81.             case 53:                    {morto="afogado";}
  82.             case 16,18,35,36,37,51,255: {morto="queimado";}
  83.             case 4:                     {morto="morto";}
  84.             case 0..3,5..7,10..15:      {morto="espancado";}
  85.             case 22..32:                {morto="demitido";}
  86.             case 38:                    {morto="Eu atirei";}
  87.             case 33,34:                 {morto="removido";}
  88.             case 39:                    {morto="explorado";}
  89.             default :                   {morto="ferids";}
  90.         }
  91.         for(new idx=0; idx<4; idx++){
  92.             PlayerTextDrawShow(playerid,MotivoMorto[playerid][idx]);
  93.         }
  94.  
  95.         PlayerTextDrawSetString(playerid,MotivoMorto[playerid][1],"~r~removido!");
  96.         switch(reason){
  97.             case 54,53,16,18,35,36,37,51:                   {format(data,sizeof(data),"~w~você tem ~r~%s",morto);}
  98.             case 49,50,8,9,4,0..3,5..7,10..15,38,33,34,39:  {format(data,sizeof(data),"~w~você tem ~r~%s",morto);}
  99.             default :                                       {format(data,sizeof(data),"~w~você tem ~r~%s",morto);}
  100.         }
  101.         PlayerTextDrawSetString(playerid,MotivoMorto[playerid][2],data);
  102.     }
  103.  
  104.     return true;
  105. }
  106.  
  107. public OnPlayerSpawn(playerid){
  108.  
  109.     for(new idx=0; idx<4; idx++){
  110.         PlayerTextDrawHide(playerid,MotivoMorto[playerid][idx]);
  111.     }
  112.  
  113.     return true;
  114. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement