Advertisement
Guest User

Untitled

a guest
May 6th, 2016
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.81 KB | None | 0 0
  1. new
  2. new Text:CheatShow[2][10],CheaterID[2][10];
  3. new Cheata;
  4.  
  5. forward UpdateCheaterID();
  6. SetTimer("UpdateCheaterID",5000,true);//ÑÞÄÀÀ
  7.  
  8. ongamemodint
  9.  
  10. Cheata = 0;
  11. new Float:DrawPos = 26.000000;
  12. for(new k;k<10;k++)
  13. {
  14. if(k > 0) DrawPos+=30;
  15. CheatShow[0][k] = TextDrawCreate(DrawPos,423.000000,"-1");
  16. CheatShow[1][k] = TextDrawCreate(DrawPos,434.000000,"-1");
  17. TextDrawColor(CheatShow[0][k], 0xef8100FF); TextDrawColor(CheatShow[1][k], 0xffffffFF);
  18. TextDrawFont(CheatShow[0][k], 1),TextDrawFont(CheatShow[1][k], 1);
  19. TextDrawSetOutline(CheatShow[0][k], 1),TextDrawSetOutline(CheatShow[1][k], 1);
  20. TextDrawLetterSize(CheatShow[0][k],0.3500,1.270),TextDrawLetterSize(CheatShow[1][k],0.3500,1.270);
  21. CheaterID[0][k] = -1,CheaterID[1][k] = -1;
  22. }
  23.  
  24.  
  25.  
  26. stock AddCheater(playerid, strokaID)
  27. {
  28. new str[16];
  29. for(new k = 0;k<12;k++)
  30. if(k >= 12) k = 0;
  31. if(Cheata == 0)
  32. {
  33. CheaterID[strokaID][0] = playerid;
  34. format(str, sizeof(str), "%d", CheaterID[strokaID][0]);
  35. TextDrawSetString(CheatShow[strokaID][0],str);
  36. Cheata += 1;
  37. }
  38. else if(Cheata == 1)
  39. {
  40. CheaterID[strokaID][1] = playerid;
  41. format(str, sizeof(str), "%d", CheaterID[strokaID][1]);
  42. TextDrawSetString(CheatShow[strokaID][1],str);
  43. Cheata += 1;
  44. }
  45. else if(Cheata == 2)
  46. {
  47. CheaterID[strokaID][2] = playerid;
  48. format(str, sizeof(str), "%d", CheaterID[strokaID][2]);
  49. TextDrawSetString(CheatShow[strokaID][2],str);
  50. Cheata += 1;
  51. }
  52. else if(Cheata == 3)
  53. {
  54. CheaterID[strokaID][3] = playerid;
  55. format(str, sizeof(str), "%d", CheaterID[strokaID][3]);
  56. TextDrawSetString(CheatShow[strokaID][3],str);
  57. Cheata += 1;
  58. }
  59. else if(Cheata == 4)
  60. {
  61. CheaterID[strokaID][4] = playerid;
  62. format(str, sizeof(str), "%d", CheaterID[strokaID][4]);
  63. TextDrawSetString(CheatShow[strokaID][4],str);
  64. Cheata += 1;
  65. }
  66. else if(Cheata == 5)
  67. {
  68. CheaterID[strokaID][5] = playerid;
  69. format(str, sizeof(str), "%d", CheaterID[strokaID][5]);
  70. TextDrawSetString(CheatShow[strokaID][5],str);
  71. Cheata += 1;
  72. }
  73. else if(Cheata == 6)
  74. {
  75. CheaterID[strokaID][6] = playerid;
  76. format(str, sizeof(str), "%d", CheaterID[strokaID][6]);
  77. TextDrawSetString(CheatShow[strokaID][6],str);
  78. Cheata += 1;
  79. }
  80. else if(Cheata == 7)
  81. {
  82. CheaterID[strokaID][7] = playerid;
  83. format(str, sizeof(str), "%d", CheaterID[strokaID][7]);
  84. TextDrawSetString(CheatShow[strokaID][7],str);
  85. Cheata += 1;
  86. }
  87. else if(Cheata == 8)
  88. {
  89. CheaterID[strokaID][8] = playerid;
  90. format(str, sizeof(str), "%d", CheaterID[strokaID][8]);
  91. TextDrawSetString(CheatShow[strokaID][8],str);
  92. Cheata += 1;
  93. }
  94. else if(Cheata == 9)
  95. {
  96. CheaterID[strokaID][9] = playerid;
  97. format(str, sizeof(str), "%d", CheaterID[strokaID][9]);
  98. TextDrawSetString(CheatShow[strokaID][9],str);
  99. Cheata = 0;
  100. }
  101. return 1;
  102. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement