Advertisement
Guest User

Ex@mple..

a guest
May 7th, 2011
824
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.64 KB | None | 0 0
  1. #include <a_samp>
  2. #include <a_graphfunc>
  3.  
  4. new
  5.     Graph:MY_GRAPH;
  6.  
  7. public
  8.     GRAPHIC::Init()
  9. {
  10.     MY_GRAPH = GRAPHIC::Create(200.0, 250.0, -50, -50, 50, 50);
  11.     GRAPHIC::XYAxisColor(MY_GRAPH, 0xFFFFFF55, 0xFFFFFF55);
  12.  
  13.     GRAPHIC::UseBackground(MY_GRAPH, 1);
  14.     GRAPHIC::BackgroundColor(MY_GRAPH, 0x00000033);
  15.  
  16.     GRAPHIC::AddPoint(MY_GRAPH, 50,  0, 0x25478588);
  17.     GRAPHIC::AddPoint(MY_GRAPH, 40, 10, 0x25478588);
  18.     GRAPHIC::AddPoint(MY_GRAPH, 30, 20, 0x25478588);
  19.     GRAPHIC::AddPoint(MY_GRAPH, 20, 30, 0x25478588);
  20.     GRAPHIC::AddPoint(MY_GRAPH, 10, 40, 0x25478588);
  21.     GRAPHIC::AddPoint(MY_GRAPH,  0, 50, 0x25478588);
  22.  
  23.     GRAPHIC::AddPoint(MY_GRAPH, -50,  0, 0x25478588);
  24.     GRAPHIC::AddPoint(MY_GRAPH, -40, 10, 0x25478588);
  25.     GRAPHIC::AddPoint(MY_GRAPH, -30, 20, 0x25478588);
  26.     GRAPHIC::AddPoint(MY_GRAPH, -20, 30, 0x25478588);
  27.     GRAPHIC::AddPoint(MY_GRAPH, -10, 40, 0x25478588);
  28.     GRAPHIC::AddPoint(MY_GRAPH,   0, 50, 0x25478588);
  29.  
  30.     GRAPHIC::AddPoint(MY_GRAPH, 50,   0, 0x25478588);
  31.     GRAPHIC::AddPoint(MY_GRAPH, 40, -10, 0x25478588);
  32.     GRAPHIC::AddPoint(MY_GRAPH, 30, -20, 0x25478588);
  33.     GRAPHIC::AddPoint(MY_GRAPH, 20, -30, 0x25478588);
  34.     GRAPHIC::AddPoint(MY_GRAPH, 10, -40, 0x25478588);
  35.     GRAPHIC::AddPoint(MY_GRAPH,  0, -50, 0x25478588);
  36.  
  37.     GRAPHIC::AddPoint(MY_GRAPH, -50,   0, 0x25478588);
  38.     GRAPHIC::AddPoint(MY_GRAPH, -40, -10, 0x25478588);
  39.     GRAPHIC::AddPoint(MY_GRAPH, -30, -20, 0x25478588);
  40.     GRAPHIC::AddPoint(MY_GRAPH, -20, -30, 0x25478588);
  41.     GRAPHIC::AddPoint(MY_GRAPH, -10, -40, 0x25478588);
  42.     GRAPHIC::AddPoint(MY_GRAPH,   0, -50, 0x25478588);
  43.     return 1;
  44. }
  45.  
  46. public
  47.     OnPlayerSpawn(playerid)
  48. {
  49.     GRAPHIC::ShowForPlayer(playerid, MY_GRAPH);
  50.     return 1;
  51. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement