Advertisement
Guest User

Untitled

a guest
Jun 13th, 2014
266
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 6.64 KB | None | 0 0
  1. // ---------------------------------
  2. //
  3. //   Include 4Wanted.
  4. //   Criado por: Mori4rty.
  5. //
  6. // ---------------------------------
  7. #include <a_samp>
  8. /*
  9.     native RemoveWantedTextDraw(playerid);
  10.     native CreateTextDrawWanted();
  11.     native SetPlayerWantedLevelMR(playerid, level);
  12.     native GetPlayerWantedLevelMR(playerid);
  13. */
  14. #define RemoveWantedTextDraw(%0) for(new i; i < MAX_PLAYERS; ++i) TextDrawHideForPlayer(%0, TextProcurado[%0][i])
  15. new Text:TextProcurado[MAX_PLAYERS][9];
  16. new Moriarty_WantedLevel[MAX_PLAYERS];
  17.  
  18. stock SetPlayerWantedLevelMR(playerid, level)
  19. {
  20.     Moriarty_WantedLevel[playerid] = level;
  21.     switch( level )
  22.     {
  23.         case 0:
  24.             for(new i; i < 9; i ++)
  25.                 TextDrawHideForPlayer(playerid, TextProcurado[playerid][i]);
  26.         case 1:
  27.         {
  28.             for(new i; i < 9; i ++)
  29.                 TextDrawHideForPlayer(playerid, TextProcurado[playerid][i]);
  30.             TextDrawShowForPlayer(playerid, TextProcurado[playerid][0]);
  31.         }
  32.         case 2:
  33.         {
  34.             for(new i; i < 9; i ++)
  35.                 TextDrawHideForPlayer(playerid, TextProcurado[playerid][i]);
  36.             for(new i; i < 2; i ++)
  37.                 TextDrawShowForPlayer(playerid, TextProcurado[playerid][i]);
  38.         }
  39.         case 3:
  40.         {
  41.             for(new i; i < 9; i ++)
  42.                 TextDrawHideForPlayer(playerid, TextProcurado[playerid][i]);
  43.             for(new i; i < 3; i ++)
  44.                 TextDrawShowForPlayer(playerid, TextProcurado[playerid][i]);
  45.         }
  46.         case 4:
  47.         {
  48.             for(new i; i < 9; i ++)
  49.                 TextDrawHideForPlayer(playerid, TextProcurado[playerid][i]);
  50.             for(new i; i < 4; i ++)
  51.                 TextDrawShowForPlayer(playerid, TextProcurado[playerid][i]);
  52.         }
  53.         case 5:
  54.         {
  55.             for(new i; i < 9; i ++)
  56.                 TextDrawHideForPlayer(playerid, TextProcurado[playerid][i]);
  57.             for(new i; i < 5; i ++)
  58.                 TextDrawShowForPlayer(playerid, TextProcurado[playerid][i]);
  59.         }
  60.         case 6:
  61.         {
  62.             for(new i; i < 9; i ++)
  63.                 TextDrawHideForPlayer(playerid, TextProcurado[playerid][i]);
  64.             for(new i; i < 6; i ++)
  65.                 TextDrawShowForPlayer(playerid, TextProcurado[playerid][i]);
  66.         }
  67.         case 7:
  68.         {
  69.             for(new i; i < 9; i ++)
  70.                 TextDrawHideForPlayer(playerid, TextProcurado[playerid][i]);
  71.             for(new i; i < 7; i ++)
  72.                 TextDrawShowForPlayer(playerid, TextProcurado[playerid][i]);
  73.         }
  74.         case 8:
  75.         {
  76.             for(new i; i < 9; i ++)
  77.                 TextDrawHideForPlayer(playerid, TextProcurado[playerid][i]);
  78.             for(new i; i < 8; i ++)
  79.                 TextDrawShowForPlayer(playerid, TextProcurado[playerid][i]);
  80.         }
  81.         case 9..100:
  82.         {
  83.             for(new i; i < 9; i ++)
  84.             {
  85.                 TextDrawHideForPlayer(playerid, TextProcurado[playerid][i]);
  86.                 TextDrawShowForPlayer(playerid, TextProcurado[playerid][i]);
  87.             }
  88.         }
  89.     }
  90.     return true;
  91. }
  92.  
  93. stock GetPlayerWantedLevelMR(playerid) return ( Moriarty_WantedLevel[playerid] );
  94.  
  95. stock CreateTextDrawWanted()
  96. {
  97.     for(new playerid; playerid < MAX_PLAYERS; playerid ++)
  98.     {
  99.         TextProcurado[playerid][0] = TextDrawCreate(-5.000000, 382.000000, "~y~[]");
  100.         TextDrawBackgroundColor(TextProcurado[playerid][0], 255);
  101.         TextDrawFont(TextProcurado[playerid][0], 0);
  102.         TextDrawLetterSize(TextProcurado[playerid][0], 0.700000, 3.000000);
  103.         TextDrawColor(TextProcurado[playerid][0], -1);
  104.         TextDrawSetOutline(TextProcurado[playerid][0], 1);
  105.         TextDrawSetProportional(TextProcurado[playerid][0], 1);
  106.  
  107.         TextProcurado[playerid][1] = TextDrawCreate(-3.000000, 352.000000, "~y~[]");
  108.         TextDrawBackgroundColor(TextProcurado[playerid][1], 255);
  109.         TextDrawFont(TextProcurado[playerid][1], 0);
  110.         TextDrawLetterSize(TextProcurado[playerid][1], 0.700000, 3.000000);
  111.         TextDrawColor(TextProcurado[playerid][1], -1);
  112.         TextDrawSetOutline(TextProcurado[playerid][1], 1);
  113.         TextDrawSetProportional(TextProcurado[playerid][1], 1);
  114.  
  115.         TextProcurado[playerid][2] = TextDrawCreate(13.000000, 326.000000, "~y~[]");
  116.         TextDrawBackgroundColor(TextProcurado[playerid][2], 255);
  117.         TextDrawFont(TextProcurado[playerid][2], 0);
  118.         TextDrawLetterSize(TextProcurado[playerid][2], 0.700000, 3.000000);
  119.         TextDrawColor(TextProcurado[playerid][2], -1);
  120.         TextDrawSetOutline(TextProcurado[playerid][2], 1);
  121.         TextDrawSetProportional(TextProcurado[playerid][2], 1);
  122.  
  123.         TextProcurado[playerid][3] = TextDrawCreate(34.000000, 306.000000, "~y~[]");
  124.         TextDrawBackgroundColor(TextProcurado[playerid][3], 255);
  125.         TextDrawFont(TextProcurado[playerid][3], 0);
  126.         TextDrawLetterSize(TextProcurado[playerid][3], 0.700000, 3.000000);
  127.         TextDrawColor(TextProcurado[playerid][3], -1);
  128.         TextDrawSetOutline(TextProcurado[playerid][3], 1);
  129.         TextDrawSetProportional(TextProcurado[playerid][3], 1);
  130.  
  131.         TextProcurado[playerid][4] = TextDrawCreate(79.000000, 306.000000, "~y~[]");
  132.         TextDrawBackgroundColor(TextProcurado[playerid][4], 255);
  133.         TextDrawFont(TextProcurado[playerid][4], 0);
  134.         TextDrawLetterSize(TextProcurado[playerid][4], 0.700000, 3.000000);
  135.         TextDrawColor(TextProcurado[playerid][4], -1);
  136.         TextDrawSetOutline(TextProcurado[playerid][4], 1);
  137.         TextDrawSetProportional(TextProcurado[playerid][4], 1);
  138.  
  139.         TextProcurado[playerid][5] = TextDrawCreate(99.000000, 326.000000, "~y~[]");
  140.         TextDrawBackgroundColor(TextProcurado[playerid][5], 255);
  141.         TextDrawFont(TextProcurado[playerid][5], 0);
  142.         TextDrawLetterSize(TextProcurado[playerid][5], 0.700000, 3.000000);
  143.         TextDrawColor(TextProcurado[playerid][5], -1);
  144.         TextDrawSetOutline(TextProcurado[playerid][5], 1);
  145.         TextDrawSetProportional(TextProcurado[playerid][5], 1);
  146.  
  147.         TextProcurado[playerid][6] = TextDrawCreate(114.000000, 352.000000, "~y~[]");
  148.         TextDrawBackgroundColor(TextProcurado[playerid][6], 255);
  149.         TextDrawFont(TextProcurado[playerid][6], 0);
  150.         TextDrawLetterSize(TextProcurado[playerid][6], 0.700000, 3.000000);
  151.         TextDrawColor(TextProcurado[playerid][6], -1);
  152.         TextDrawSetOutline(TextProcurado[playerid][6], 1);
  153.         TextDrawSetProportional(TextProcurado[playerid][6], 1);
  154.  
  155.         TextProcurado[playerid][7] = TextDrawCreate(116.000000, 382.000000, "~y~[]");
  156.         TextDrawBackgroundColor(TextProcurado[playerid][7], 255);
  157.         TextDrawFont(TextProcurado[playerid][7], 0);
  158.         TextDrawLetterSize(TextProcurado[playerid][7], 0.700000, 3.000000);
  159.         TextDrawColor(TextProcurado[playerid][7], -1);
  160.         TextDrawSetOutline(TextProcurado[playerid][7], 1);
  161.         TextDrawSetProportional(TextProcurado[playerid][7], 1);
  162.  
  163.         TextProcurado[playerid][8] = TextDrawCreate(58.000000, 283.000000, "~y~[]");
  164.         TextDrawBackgroundColor(TextProcurado[playerid][8], 255);
  165.         TextDrawFont(TextProcurado[playerid][8], 0);
  166.         TextDrawLetterSize(TextProcurado[playerid][8], 0.700000, 3.000000);
  167.         TextDrawColor(TextProcurado[playerid][8], -1);
  168.         TextDrawSetOutline(TextProcurado[playerid][8], 1);
  169.         TextDrawSetProportional(TextProcurado[playerid][8], 1);
  170.     }
  171.     return true;
  172. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement