Advertisement
Guest User

Untitled

a guest
May 1st, 2016
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.95 KB | None | 0 0
  1.  
  2. //============================================================================================
  3. forward DmCast(color, string[]);
  4. forward InfoVlezeCast(color, string[]);
  5. forward ReconCast(color, string[]);
  6. forward PomosCast(color, string[]);
  7. forward GchatCast(color, string[]);
  8. forward AachatCast(color, string[]);
  9. forward WarningCast(color, string[]);
  10. forward ReportCast(color, string[]);
  11. //==============================================================================
  12. public AachatCast(color, string[])
  13. {
  14. foreach (Player, i)
  15. {
  16. if(PlayerInfo[i][pAachat] == 1 && PlayerInfo[i][pAdmin] >= 1 || PlayerInfo[i][pGameMaster] >= 1 && PlayerInfo[i][pAachat] == 1)
  17. {
  18. SendClientMessage(i, color, string);
  19. }
  20. }
  21. }
  22. public GchatCast(color, string[])
  23. {
  24. foreach (Player, i)
  25. {
  26. if(PlayerInfo[i][pGchat] == 1 && PlayerInfo[i][pAdmin] >= 1 || PlayerInfo[i][pGameMaster] >= 1 && PlayerInfo[i][pGchat] == 1)
  27. {
  28. SendClientMessage(i, color, string);
  29. }
  30. }
  31. }
  32. public ReportCast(color, string[])
  33. {
  34. foreach (Player, i)
  35. {
  36. if(PlayerInfo[i][pReport] == 1 && PlayerInfo[i][pAdmin] >= 1 || PlayerInfo[i][pGameMaster] >= 1 && PlayerInfo[i][pReport] == 1)
  37. {
  38. SendClientMessage(i, color, string);
  39. }
  40. }
  41. }
  42. public WarningCast(color, string[])
  43. {
  44. foreach (Player, i)
  45. {
  46. if(PlayerInfo[i][pWarning] == 1 && PlayerInfo[i][pAdmin] >= 1 || PlayerInfo[i][pGameMaster] >= 1 && PlayerInfo[i][pWarning] == 1)
  47. {
  48. SendClientMessage(i, color, string);
  49. }
  50. }
  51. }
  52. public DmCast(color, string[])
  53. {
  54. foreach (Player, i)
  55. {
  56. if(PlayerInfo[i][pDmwarn] == 1 && PlayerInfo[i][pAdmin] >= 1 || PlayerInfo[i][pGameMaster] >= 1 && PlayerInfo[i][pDmwarn] == 1)
  57. {
  58. SendClientMessage(i, color, string);
  59. }
  60. }
  61. }
  62. public InfoVlezeCast(color, string[])
  63. {
  64. foreach (Player, i)
  65. {
  66. if(PlayerInfo[i][pInfovleze] == 1 && PlayerInfo[i][pAdmin] >= 1 || PlayerInfo[i][pGameMaster] >= 1 && PlayerInfo[i][pInfovleze] == 1)
  67. {
  68. SendClientMessage(i, color, string);
  69. }
  70. }
  71. }
  72. public ReconCast(color, string[])
  73. {
  74. foreach (Player, i)
  75. {
  76. if(PlayerInfo[i][pRecon] == 1 && PlayerInfo[i][pAdmin] >= 1 || PlayerInfo[i][pGameMaster] >= 1 && PlayerInfo[i][pRecon] == 1)
  77. {
  78. SendClientMessage(i, color, string);
  79. }
  80. }
  81. }
  82. public PomosCast(color, string[])
  83. {
  84. foreach (Player, i)
  85. {
  86. if(PlayerInfo[i][pPomos] == 1 && PlayerInfo[i][pAdmin] >= 1 || PlayerInfo[i][pGameMaster] >= 1 && PlayerInfo[i][pPomos] == 1)
  87. {
  88. SendClientMessage(i, color, string);
  89. }
  90. }
  91. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement