Guest User

Untitled

a guest
Jun 28th, 2012
346
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 3.84 KB | None | 0 0
  1. // Because some people don't believe
  2.  
  3. #include <a_samp>
  4. #include <zcmd>
  5.  
  6. main() {}
  7.  
  8. new PlayerText:A;
  9. new PlayerText:B;
  10. new PlayerText:C;
  11.  
  12. public OnPlayerConnect(playerid)
  13. {
  14.     if(playerid == 0)
  15.     {
  16.         // This time we create A first
  17.         A = CreatePlayerTextDraw(playerid, 20.000000, 190.000000, "A");
  18.         PlayerTextDrawAlignment(playerid, A, 2);
  19.         PlayerTextDrawBackgroundColor(playerid, A, 255);
  20.         PlayerTextDrawFont(playerid, A, 2);
  21.         PlayerTextDrawLetterSize(playerid, A, 0.460000, 2.000000);
  22.         PlayerTextDrawColor(playerid, A, -1);
  23.         PlayerTextDrawSetOutline(playerid, A, 1);
  24.         PlayerTextDrawSetProportional(playerid, A, 1);
  25.         PlayerTextDrawUseBox(playerid, A, 1);
  26.         PlayerTextDrawBoxColor(playerid, A, 255);
  27.         PlayerTextDrawTextSize(playerid, A, 0.000000, 20.000000);
  28.  
  29.         B = CreatePlayerTextDraw(playerid, 60.000000, 190.000000, "B");
  30.         PlayerTextDrawAlignment(playerid, B, 2);
  31.         PlayerTextDrawBackgroundColor(playerid, B, 255);
  32.         PlayerTextDrawFont(playerid, B, 2);
  33.         PlayerTextDrawLetterSize(playerid, B, 0.460000, 2.000000);
  34.         PlayerTextDrawColor(playerid, B, -1);
  35.         PlayerTextDrawSetOutline(playerid, B, 1);
  36.         PlayerTextDrawSetProportional(playerid, B, 1);
  37.         PlayerTextDrawUseBox(playerid, B, 1);
  38.         PlayerTextDrawBoxColor(playerid, B, 255);
  39.         PlayerTextDrawTextSize(playerid, B, 0.000000, 20.000000);
  40.  
  41.         C = CreatePlayerTextDraw(playerid, 100.000000, 190.000000, "C");
  42.         PlayerTextDrawAlignment(playerid, C, 2);
  43.         PlayerTextDrawBackgroundColor(playerid, C, 255);
  44.         PlayerTextDrawFont(playerid, C, 2);
  45.         PlayerTextDrawLetterSize(playerid, C, 0.460000, 2.000000);
  46.         PlayerTextDrawColor(playerid, C, -1);
  47.         PlayerTextDrawSetOutline(playerid, C, 1);
  48.         PlayerTextDrawSetProportional(playerid, C, 1);
  49.         PlayerTextDrawUseBox(playerid, C, 1);
  50.         PlayerTextDrawBoxColor(playerid, C, 255);
  51.         PlayerTextDrawTextSize(playerid, C, 0.000000, 20.000000);
  52.     }
  53.     else
  54.     {
  55.         // This time we create C first
  56.         C = CreatePlayerTextDraw(playerid, 100.000000, 190.000000, "C");
  57.         PlayerTextDrawAlignment(playerid, C, 2);
  58.         PlayerTextDrawBackgroundColor(playerid, C, 255);
  59.         PlayerTextDrawFont(playerid, C, 2);
  60.         PlayerTextDrawLetterSize(playerid, C, 0.460000, 2.000000);
  61.         PlayerTextDrawColor(playerid, C, -1);
  62.         PlayerTextDrawSetOutline(playerid, C, 1);
  63.         PlayerTextDrawSetProportional(playerid, C, 1);
  64.         PlayerTextDrawUseBox(playerid, C, 1);
  65.         PlayerTextDrawBoxColor(playerid, C, 255);
  66.         PlayerTextDrawTextSize(playerid, C, 0.000000, 20.000000);
  67.  
  68.         A = CreatePlayerTextDraw(playerid, 20.000000, 190.000000, "A");
  69.         PlayerTextDrawAlignment(playerid, A, 2);
  70.         PlayerTextDrawBackgroundColor(playerid, A, 255);
  71.         PlayerTextDrawFont(playerid, A, 2);
  72.         PlayerTextDrawLetterSize(playerid, A, 0.460000, 2.000000);
  73.         PlayerTextDrawColor(playerid, A, -1);
  74.         PlayerTextDrawSetOutline(playerid, A, 1);
  75.         PlayerTextDrawSetProportional(playerid, A, 1);
  76.         PlayerTextDrawUseBox(playerid, A, 1);
  77.         PlayerTextDrawBoxColor(playerid, A, 255);
  78.         PlayerTextDrawTextSize(playerid, A, 0.000000, 20.000000);
  79.  
  80.         B = CreatePlayerTextDraw(playerid, 60.000000, 190.000000, "B");
  81.         PlayerTextDrawAlignment(playerid, B, 2);
  82.         PlayerTextDrawBackgroundColor(playerid, B, 255);
  83.         PlayerTextDrawFont(playerid, B, 2);
  84.         PlayerTextDrawLetterSize(playerid, B, 0.460000, 2.000000);
  85.         PlayerTextDrawColor(playerid, B, -1);
  86.         PlayerTextDrawSetOutline(playerid, B, 1);
  87.         PlayerTextDrawSetProportional(playerid, B, 1);
  88.         PlayerTextDrawUseBox(playerid, B, 1);
  89.         PlayerTextDrawBoxColor(playerid, B, 255);
  90.         PlayerTextDrawTextSize(playerid, B, 0.000000, 20.000000);
  91.     }
  92.    
  93.     new szLuls[64];
  94.     format(szLuls, 64, "A: %i   B: %i   C: %i", _:A, _:B, _:C);
  95.     SendClientMessage(playerid, -1, szLuls);
  96.    
  97.     PlayerTextDrawShow(playerid, A);
  98.     PlayerTextDrawShow(playerid, B);
  99.     PlayerTextDrawShow(playerid, C);
  100.     return 1;
  101. }
  102.  
  103. CMD:delb(playerid, params[])
  104. {
  105.     PlayerTextDrawDestroy(playerid, B);
  106.     return 1;
  107. }
Advertisement
Add Comment
Please, Sign In to add comment