Guest User

NIce Textdraw for your server

a guest
Jan 28th, 2013
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.84 KB | None | 0 0
  1. #include <a_samp>
  2.  
  3. new Text:Textdraw0;
  4.  
  5. public OnFilterScriptInit()
  6. {
  7.     Textdraw0 = TextDrawCreate(457.000000, 1.000000, "Your Text Here");
  8.     TextDrawBackgroundColor(Textdraw0, 255);
  9.     TextDrawFont(Textdraw0, 0);
  10.     TextDrawLetterSize(Textdraw0, 0.549999, 2.000000);
  11.     TextDrawColor(Textdraw0, 1333405439);
  12.     TextDrawSetOutline(Textdraw0, 0);
  13.     TextDrawSetProportional(Textdraw0, 1);
  14.     TextDrawSetShadow(Textdraw0, 1);
  15.  
  16.     for(new i; i < MAX_PLAYERS; i ++)
  17.     {
  18.         if(IsPlayerConnected(i))
  19.         {
  20.             TextDrawShowForPlayer(i, Textdraw0);
  21.         }
  22.     }
  23.     return 1;
  24. }
  25.  
  26. public OnFilterScriptExit()
  27. {
  28.     TextDrawHideForAll(Textdraw0);
  29.     TextDrawDestroy(Textdraw0);
  30.     return 1;
  31. }
  32.  
  33. public OnPlayerConnect(playerid)
  34. {
  35.     TextDrawShowForPlayer(playerid, Textdraw0);
  36.     SendClientMessage(playerid, -1, "This textdraw on top of your gun is made by iRonan");
  37.     return 1;
  38. }
Advertisement
Add Comment
Please, Sign In to add comment