Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ---------------------------------
- //
- // Include 4Wanted.
- // Criado por: Mori4rty.
- //
- // ---------------------------------
- #include <a_samp>
- /*
- native RemoveWantedTextDraw(playerid);
- native CreateTextDrawWanted();
- native SetPlayerWantedLevelMR(playerid, level);
- native GetPlayerWantedLevelMR(playerid);
- */
- #define RemoveWantedTextDraw(%0) for(new i; i < MAX_PLAYERS; ++i) TextDrawHideForPlayer(%0, TextProcurado[%0][i])
- new Text:TextProcurado[MAX_PLAYERS][9];
- new Moriarty_WantedLevel[MAX_PLAYERS];
- stock SetPlayerWantedLevelMR(playerid, level)
- {
- Moriarty_WantedLevel[playerid] = level;
- switch( level )
- {
- case 0:
- for(new i; i < 9; i ++)
- TextDrawHideForPlayer(playerid, TextProcurado[playerid][i]);
- case 1:
- {
- for(new i; i < 9; i ++)
- TextDrawHideForPlayer(playerid, TextProcurado[playerid][i]);
- TextDrawShowForPlayer(playerid, TextProcurado[playerid][0]);
- }
- case 2:
- {
- for(new i; i < 9; i ++)
- TextDrawHideForPlayer(playerid, TextProcurado[playerid][i]);
- for(new i; i < 2; i ++)
- TextDrawShowForPlayer(playerid, TextProcurado[playerid][i]);
- }
- case 3:
- {
- for(new i; i < 9; i ++)
- TextDrawHideForPlayer(playerid, TextProcurado[playerid][i]);
- for(new i; i < 3; i ++)
- TextDrawShowForPlayer(playerid, TextProcurado[playerid][i]);
- }
- case 4:
- {
- for(new i; i < 9; i ++)
- TextDrawHideForPlayer(playerid, TextProcurado[playerid][i]);
- for(new i; i < 4; i ++)
- TextDrawShowForPlayer(playerid, TextProcurado[playerid][i]);
- }
- case 5:
- {
- for(new i; i < 9; i ++)
- TextDrawHideForPlayer(playerid, TextProcurado[playerid][i]);
- for(new i; i < 5; i ++)
- TextDrawShowForPlayer(playerid, TextProcurado[playerid][i]);
- }
- case 6:
- {
- for(new i; i < 9; i ++)
- TextDrawHideForPlayer(playerid, TextProcurado[playerid][i]);
- for(new i; i < 6; i ++)
- TextDrawShowForPlayer(playerid, TextProcurado[playerid][i]);
- }
- case 7:
- {
- for(new i; i < 9; i ++)
- TextDrawHideForPlayer(playerid, TextProcurado[playerid][i]);
- for(new i; i < 7; i ++)
- TextDrawShowForPlayer(playerid, TextProcurado[playerid][i]);
- }
- case 8:
- {
- for(new i; i < 9; i ++)
- TextDrawHideForPlayer(playerid, TextProcurado[playerid][i]);
- for(new i; i < 8; i ++)
- TextDrawShowForPlayer(playerid, TextProcurado[playerid][i]);
- }
- case 9..100:
- {
- for(new i; i < 9; i ++)
- {
- TextDrawHideForPlayer(playerid, TextProcurado[playerid][i]);
- TextDrawShowForPlayer(playerid, TextProcurado[playerid][i]);
- }
- }
- }
- return true;
- }
- stock GetPlayerWantedLevelMR(playerid) return ( Moriarty_WantedLevel[playerid] );
- stock CreateTextDrawWanted()
- {
- for(new playerid; playerid < MAX_PLAYERS; playerid ++)
- {
- TextProcurado[playerid][0] = TextDrawCreate(-5.000000, 382.000000, "~y~[]");
- TextDrawBackgroundColor(TextProcurado[playerid][0], 255);
- TextDrawFont(TextProcurado[playerid][0], 0);
- TextDrawLetterSize(TextProcurado[playerid][0], 0.700000, 3.000000);
- TextDrawColor(TextProcurado[playerid][0], -1);
- TextDrawSetOutline(TextProcurado[playerid][0], 1);
- TextDrawSetProportional(TextProcurado[playerid][0], 1);
- TextProcurado[playerid][1] = TextDrawCreate(-3.000000, 352.000000, "~y~[]");
- TextDrawBackgroundColor(TextProcurado[playerid][1], 255);
- TextDrawFont(TextProcurado[playerid][1], 0);
- TextDrawLetterSize(TextProcurado[playerid][1], 0.700000, 3.000000);
- TextDrawColor(TextProcurado[playerid][1], -1);
- TextDrawSetOutline(TextProcurado[playerid][1], 1);
- TextDrawSetProportional(TextProcurado[playerid][1], 1);
- TextProcurado[playerid][2] = TextDrawCreate(13.000000, 326.000000, "~y~[]");
- TextDrawBackgroundColor(TextProcurado[playerid][2], 255);
- TextDrawFont(TextProcurado[playerid][2], 0);
- TextDrawLetterSize(TextProcurado[playerid][2], 0.700000, 3.000000);
- TextDrawColor(TextProcurado[playerid][2], -1);
- TextDrawSetOutline(TextProcurado[playerid][2], 1);
- TextDrawSetProportional(TextProcurado[playerid][2], 1);
- TextProcurado[playerid][3] = TextDrawCreate(34.000000, 306.000000, "~y~[]");
- TextDrawBackgroundColor(TextProcurado[playerid][3], 255);
- TextDrawFont(TextProcurado[playerid][3], 0);
- TextDrawLetterSize(TextProcurado[playerid][3], 0.700000, 3.000000);
- TextDrawColor(TextProcurado[playerid][3], -1);
- TextDrawSetOutline(TextProcurado[playerid][3], 1);
- TextDrawSetProportional(TextProcurado[playerid][3], 1);
- TextProcurado[playerid][4] = TextDrawCreate(79.000000, 306.000000, "~y~[]");
- TextDrawBackgroundColor(TextProcurado[playerid][4], 255);
- TextDrawFont(TextProcurado[playerid][4], 0);
- TextDrawLetterSize(TextProcurado[playerid][4], 0.700000, 3.000000);
- TextDrawColor(TextProcurado[playerid][4], -1);
- TextDrawSetOutline(TextProcurado[playerid][4], 1);
- TextDrawSetProportional(TextProcurado[playerid][4], 1);
- TextProcurado[playerid][5] = TextDrawCreate(99.000000, 326.000000, "~y~[]");
- TextDrawBackgroundColor(TextProcurado[playerid][5], 255);
- TextDrawFont(TextProcurado[playerid][5], 0);
- TextDrawLetterSize(TextProcurado[playerid][5], 0.700000, 3.000000);
- TextDrawColor(TextProcurado[playerid][5], -1);
- TextDrawSetOutline(TextProcurado[playerid][5], 1);
- TextDrawSetProportional(TextProcurado[playerid][5], 1);
- TextProcurado[playerid][6] = TextDrawCreate(114.000000, 352.000000, "~y~[]");
- TextDrawBackgroundColor(TextProcurado[playerid][6], 255);
- TextDrawFont(TextProcurado[playerid][6], 0);
- TextDrawLetterSize(TextProcurado[playerid][6], 0.700000, 3.000000);
- TextDrawColor(TextProcurado[playerid][6], -1);
- TextDrawSetOutline(TextProcurado[playerid][6], 1);
- TextDrawSetProportional(TextProcurado[playerid][6], 1);
- TextProcurado[playerid][7] = TextDrawCreate(116.000000, 382.000000, "~y~[]");
- TextDrawBackgroundColor(TextProcurado[playerid][7], 255);
- TextDrawFont(TextProcurado[playerid][7], 0);
- TextDrawLetterSize(TextProcurado[playerid][7], 0.700000, 3.000000);
- TextDrawColor(TextProcurado[playerid][7], -1);
- TextDrawSetOutline(TextProcurado[playerid][7], 1);
- TextDrawSetProportional(TextProcurado[playerid][7], 1);
- TextProcurado[playerid][8] = TextDrawCreate(58.000000, 283.000000, "~y~[]");
- TextDrawBackgroundColor(TextProcurado[playerid][8], 255);
- TextDrawFont(TextProcurado[playerid][8], 0);
- TextDrawLetterSize(TextProcurado[playerid][8], 0.700000, 3.000000);
- TextDrawColor(TextProcurado[playerid][8], -1);
- TextDrawSetOutline(TextProcurado[playerid][8], 1);
- TextDrawSetProportional(TextProcurado[playerid][8], 1);
- }
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement