Advertisement
DanGT

[FILTERSCRIPT] Mostrando Local(LS/LV/SF/SA).

Mar 20th, 2013
338
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 2.47 KB | None | 0 0
  1. #include <a_samp>
  2.  
  3. new Text:LV, Text:LS, Text:SF, Text:LIN;
  4.  
  5. public OnFilterScriptInit()
  6. {
  7.     LV = TextDrawCreate(318.000000, 430.000000, "~b~Las Venturas");
  8.     TextDrawAlignment(LV, 2);
  9.     TextDrawBackgroundColor(LV, -16776961);
  10.     TextDrawFont(LV, 3);
  11.     TextDrawLetterSize(LV, 0.480000, 1.600000);
  12.     TextDrawColor(LV, -1);
  13.     TextDrawSetOutline(LV, 1);
  14.     TextDrawSetProportional(LV, 1);
  15.     LIN = TextDrawCreate(318.000000, 430.000000, "~b~San Andreas");
  16.     TextDrawAlignment(LIN, 2);
  17.     TextDrawBackgroundColor(LIN, -16776961);
  18.     TextDrawFont(LIN, 3);
  19.     TextDrawLetterSize(LIN, 0.480000, 1.600000);
  20.     TextDrawColor(LIN, -1);
  21.     TextDrawSetOutline(LIN, 1);
  22.     TextDrawSetProportional(LIN, 1);
  23.     SF = TextDrawCreate(318.000000, 430.000000, "~b~San Fierro");
  24.     TextDrawAlignment(SF, 2);
  25.     TextDrawBackgroundColor(SF, -16776961);
  26.     TextDrawFont(SF, 3);
  27.     TextDrawLetterSize(SF, 0.480000, 1.600000);
  28.     TextDrawColor(SF, -1);
  29.     TextDrawSetOutline(SF, 1);
  30.     TextDrawSetProportional(SF, 1);
  31.     LS = TextDrawCreate(318.000000, 430.000000, "~b~Los Santos");
  32.     TextDrawAlignment(LS, 2);
  33.     TextDrawBackgroundColor(LS, -16776961);
  34.     TextDrawFont(LS, 3);
  35.     TextDrawLetterSize(LS, 0.480000, 1.600000);
  36.     TextDrawColor(LS, -1);
  37.     TextDrawSetOutline(LS, 1);
  38.     TextDrawSetProportional(LS, 1);
  39.     return 1;
  40. }
  41.  
  42. public OnFilterScriptExit()
  43. {
  44.     TextDrawHideForAll(LV);
  45.     TextDrawHideForAll(LS);
  46.     TextDrawHideForAll(SF);
  47.     TextDrawHideForAll(LIN);
  48.     return 1;
  49. }
  50.  
  51. public OnPlayerUpdate(playerid)
  52. {
  53.     new Float:X, Float:Y, Float:Z;
  54.     GetPlayerPos(playerid, X, Y, Z);
  55.     if(X >= 815 && X <= 3000 && Y >= 717 && Y <= 3000)
  56.     {
  57.        
  58.         TextDrawHideForPlayer(playerid, LS);
  59.         TextDrawHideForPlayer(playerid, SF);
  60.         TextDrawHideForPlayer(playerid, LIN);
  61.         TextDrawShowForPlayer(playerid, LV);
  62.     }
  63.     if(X < 0)
  64.     {
  65.        
  66.         TextDrawHideForPlayer(playerid, LS);
  67.         TextDrawHideForPlayer(playerid, LV);
  68.         TextDrawHideForPlayer(playerid, LIN);
  69.         TextDrawShowForPlayer(playerid, SF);
  70.     }
  71.     if(X > 0 && Y < 0)
  72.     {
  73.        
  74.         TextDrawHideForPlayer(playerid, SF);
  75.         TextDrawHideForPlayer(playerid, LV);
  76.         TextDrawHideForPlayer(playerid, LIN);
  77.         TextDrawShowForPlayer(playerid, LS);
  78.     }
  79.     if(!(X >= 815 && X <= 3000 && Y >= 717 && Y <= 3000) && !(X < 0) && !(X > 0 && Y < 0))
  80.     {
  81.        
  82.         TextDrawHideForPlayer(playerid, LV);
  83.         TextDrawHideForPlayer(playerid, LS);
  84.         TextDrawHideForPlayer(playerid, SF);
  85.         TextDrawShowForPlayer(playerid, LIN);
  86.     }
  87.     return 1;
  88. }
  89.  
  90.  
  91. /*
  92. Creditos
  93. Dan - CODE.
  94. iSimir - Vi Um Post dele e tive a ideia do CODE.
  95. DJLoko - TextDraw.
  96. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement