Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*------------------------||
- || Author: Whatname ||
- || Created: 08/08/2016 ||
- || Updated:12/08/2016 ||
- *///----------------------||
- #if defined _WantedEx_included
- #endinput
- #define _WantedEx_included
- #endif
- /*
- native SetPlayerWantedLevelEx(playerid, color, pos, wanted);
- native DisablePlayerWantedLevelEx(playerid);
- native GetPlayerWantedLevelEx(playerid);
- */
- new PlayerText:a_samp_wantedlvl;
- new a_samp_pwantedlvl[MAX_PLAYERS];
- #define WANTED_UP_LEFT 0
- #define WANTED_DOWN_LEFT 2
- #define WANTED_UP_RIGHT 1
- #define WANTED_DOWN_RIGHT 3
- stock SetPlayerWantedLevelEx(playerid, color, pos, wanted)
- {
- a_samp_pwantedlvl[playerid] = wanted;
- switch(pos)
- {
- case 0:
- {
- PlayerTextDrawDestroy(playerid, a_samp_wantedlvl);
- a_samp_wantedlvl = CreatePlayerTextDraw(playerid, 5.000000, 100.000000, " ");
- PlayerTextDrawFont(playerid, a_samp_wantedlvl, 2);
- PlayerTextDrawLetterSize(playerid, a_samp_wantedlvl, 0.600000, 1.000000);
- PlayerTextDrawSetOutline(playerid, a_samp_wantedlvl, 0);
- PlayerTextDrawSetShadow(playerid, a_samp_wantedlvl, 1);
- PlayerTextDrawColor(playerid, a_samp_wantedlvl, color);
- PlayerTextDrawSetProportional(playerid, a_samp_wantedlvl, 1);
- PlayerTextDrawShow(playerid, a_samp_wantedlvl);
- if(wanted < 1 || wanted > 6) return PlayerTextDrawSetString(playerid, a_samp_wantedlvl, " ");
- if(wanted == 1) return PlayerTextDrawSetString(playerid, a_samp_wantedlvl, "[]~l~[][][][][]");
- if(wanted == 2) return PlayerTextDrawSetString(playerid, a_samp_wantedlvl, "[][]~l~[][][][]");
- if(wanted == 3) return PlayerTextDrawSetString(playerid, a_samp_wantedlvl, "[][][]~l~[][][]");
- if(wanted == 4) return PlayerTextDrawSetString(playerid, a_samp_wantedlvl, "[][][][]~l~[][]");
- if(wanted == 5) return PlayerTextDrawSetString(playerid, a_samp_wantedlvl, "[][][][][]~l~[]");
- if(wanted == 6) return PlayerTextDrawSetString(playerid, a_samp_wantedlvl, "[][][][][][]");
- }
- case 1:
- {
- PlayerTextDrawDestroy(playerid, a_samp_wantedlvl);
- a_samp_wantedlvl = CreatePlayerTextDraw(playerid, 420.000000, 100.000000, " ");
- PlayerTextDrawFont(playerid, a_samp_wantedlvl, 2);
- PlayerTextDrawLetterSize(playerid, a_samp_wantedlvl, 0.600000, 1.000000); //0.400000, 0.500000
- PlayerTextDrawSetOutline(playerid, a_samp_wantedlvl, 0);
- PlayerTextDrawSetShadow(playerid, a_samp_wantedlvl, 1);
- PlayerTextDrawColor(playerid, a_samp_wantedlvl, color);
- PlayerTextDrawSetProportional(playerid, a_samp_wantedlvl, 1);
- PlayerTextDrawShow(playerid, a_samp_wantedlvl);
- if(wanted < 1 || wanted > 6) return PlayerTextDrawSetString(playerid, a_samp_wantedlvl, " ");
- if(wanted == 1) return PlayerTextDrawSetString(playerid, a_samp_wantedlvl, "[]~l~[][][][][]");
- if(wanted == 2) return PlayerTextDrawSetString(playerid, a_samp_wantedlvl, "[][]~l~[][][][]");
- if(wanted == 3) return PlayerTextDrawSetString(playerid, a_samp_wantedlvl, "[][][]~l~[][][]");
- if(wanted == 4) return PlayerTextDrawSetString(playerid, a_samp_wantedlvl, "[][][][]~l~[][]");
- if(wanted == 5) return PlayerTextDrawSetString(playerid, a_samp_wantedlvl, "[][][][][]~l~[]");
- if(wanted == 6) return PlayerTextDrawSetString(playerid, a_samp_wantedlvl, "[][][][][][]");
- }
- case 2:
- {
- PlayerTextDrawDestroy(playerid, a_samp_wantedlvl);
- a_samp_wantedlvl = CreatePlayerTextDraw(playerid, 5.000000, 430.000000, " ");
- PlayerTextDrawFont(playerid, a_samp_wantedlvl, 2);
- PlayerTextDrawLetterSize(playerid, a_samp_wantedlvl, 0.600000, 1.000000);
- PlayerTextDrawSetOutline(playerid, a_samp_wantedlvl, 0);
- PlayerTextDrawSetShadow(playerid, a_samp_wantedlvl, 1);
- PlayerTextDrawColor(playerid, a_samp_wantedlvl, color);
- PlayerTextDrawSetProportional(playerid, a_samp_wantedlvl, 1);
- PlayerTextDrawShow(playerid, a_samp_wantedlvl);
- if(wanted < 1 || wanted > 6) return PlayerTextDrawSetString(playerid, a_samp_wantedlvl, " ");
- if(wanted == 1) return PlayerTextDrawSetString(playerid, a_samp_wantedlvl, "[]~l~[][][][][]");
- if(wanted == 2) return PlayerTextDrawSetString(playerid, a_samp_wantedlvl, "[][]~l~[][][][]");
- if(wanted == 3) return PlayerTextDrawSetString(playerid, a_samp_wantedlvl, "[][][]~l~[][][]");
- if(wanted == 4) return PlayerTextDrawSetString(playerid, a_samp_wantedlvl, "[][][][]~l~[][]");
- if(wanted == 5) return PlayerTextDrawSetString(playerid, a_samp_wantedlvl, "[][][][][]~l~[]");
- if(wanted == 6) return PlayerTextDrawSetString(playerid, a_samp_wantedlvl, "[][][][][][]");
- }
- case 3:
- {
- PlayerTextDrawDestroy(playerid, a_samp_wantedlvl);
- a_samp_wantedlvl = CreatePlayerTextDraw(playerid, 420.000000, 430.000000, " ");
- PlayerTextDrawFont(playerid, a_samp_wantedlvl, 2);
- PlayerTextDrawLetterSize(playerid, a_samp_wantedlvl, 0.600000, 1.000000);
- PlayerTextDrawSetOutline(playerid, a_samp_wantedlvl, 0);
- PlayerTextDrawSetShadow(playerid, a_samp_wantedlvl, 1);
- PlayerTextDrawColor(playerid, a_samp_wantedlvl, color);
- PlayerTextDrawSetProportional(playerid, a_samp_wantedlvl, 1);
- PlayerTextDrawShow(playerid, a_samp_wantedlvl);
- if(wanted < 1 || wanted > 6) return PlayerTextDrawSetString(playerid, a_samp_wantedlvl, " ");
- if(wanted == 1) return PlayerTextDrawSetString(playerid, a_samp_wantedlvl, "[]~l~[][][][][]");
- if(wanted == 2) return PlayerTextDrawSetString(playerid, a_samp_wantedlvl, "[][]~l~[][][][]");
- if(wanted == 3) return PlayerTextDrawSetString(playerid, a_samp_wantedlvl, "[][][]~l~[][][]");
- if(wanted == 4) return PlayerTextDrawSetString(playerid, a_samp_wantedlvl, "[][][][]~l~[][]");
- if(wanted == 5) return PlayerTextDrawSetString(playerid, a_samp_wantedlvl, "[][][][][]~l~[]");
- if(wanted == 6) return PlayerTextDrawSetString(playerid, a_samp_wantedlvl, "[][][][][][]");
- }
- default: PlayerTextDrawSetString(playerid, a_samp_wantedlvl, " ");
- }
- return pos;
- }
- stock DisablePlayerWantedLevelEx(playerid)
- {
- PlayerTextDrawDestroy(playerid, a_samp_wantedlvl);
- a_samp_pwantedlvl[playerid] = 0;
- return 1;
- }
- stock GetPlayerWantedLevelEx(playerid)
- {
- return a_samp_pwantedlvl[playerid];
- }
- /*------------------------||
- || Author: Whatname ||
- || Created: 08/08/2016 ||
- || Updated:12/08/2016 ||
- *///----------------------||
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement