Advertisement
Guest User

Untitled

a guest
Feb 14th, 2019
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.55 KB | None | 0 0
  1. CMD:a( playerid, params[] ) {
  2.  
  3. if( PlayerInfo[ playerid ][ xMute ] != 0) return GRESKA( playerid, "Ne mozete pricati, usutkani ste.");
  4. new text[ 128 ], string1[180];
  5. if( sscanf( params, "s[128]", text ) ) return KORISCENJE( playerid, "/a [ text ]" );
  6. if( PlayerInfo[ playerid ][ xAdmin ] < 1 && PlayerInfo[ playerid ][ xSpecAdmin ] < 1 ) return GRESKA( playerid, "Niste u mogucnosti koristiti ovu komandu." );
  7.  
  8. if( PlayerInfo[ playerid ][ xSkriptaRank ] == 1 ) {
  9. format( string1, sizeof( string1 ), "[A] Skripter - %s: "col_white"%s", ImeIgraca( playerid ), text );
  10. }
  11. else if( PlayerInfo[ playerid ][ xSkriptaRank ] == 2 ) {
  12. format( string1, sizeof( string1 ), "[A] Skripter - %s: "col_white"%s", ImeIgraca( playerid ), text );
  13. }
  14. else if( PlayerInfo[ playerid ][ xSkriptaRank ] == 3 ) {
  15. format( string1, sizeof( string1 ), "[A] Mapper - %s: "col_white"%s", ImeIgraca( playerid ), text );
  16. }
  17. else if( PlayerInfo[ playerid ][ xSkriptaRank ] == 6 ) {
  18. format( string1, sizeof( string1 ), "[A] Co-Owner - %s: "col_white"%s", ImeIgraca( playerid ), text );
  19. }
  20. else if( PlayerInfo[ playerid ][ xSkriptaRank ] == 7 ) {
  21. format( string1, sizeof( string1 ), "[A] Head Mapper - %s: "col_white"%s", ImeIgraca( playerid ), text );
  22. }
  23. else if( PlayerInfo[ playerid ][ xSkriptaRank ] == 8 ) {
  24. format( string1, sizeof( string1 ), "[A] Predsednik - %s: "col_white"%s", ImeIgraca( playerid ), text );
  25. }
  26. else if( PlayerInfo[ playerid ][ xAdmin ] == 7 ) {
  27. format( string1, sizeof( string1 ), "[A] Owner - %s: "col_white"%s", ImeIgraca( playerid ), text );
  28. }
  29. else if( PlayerInfo[ playerid ][ xAdmin ] == 6 ) {
  30. format( string1, sizeof( string1 ), "[A] Direktor - %s: "col_white"%s", ImeIgraca( playerid ), text );
  31. }
  32. else if( PlayerInfo[ playerid ][ xAdmin ] == 5 ) {
  33. format( string1, sizeof( string1 ), "[A] Head Admin - %s: "col_white"%s", ImeIgraca( playerid ), text );
  34. }
  35. else if( PlayerInfo[ playerid ][ xAdmin ] == 4 ) {
  36. format( string1, sizeof( string1 ), "[A] Admin 4 - %s: "col_white"%s", ImeIgraca( playerid ), text );
  37. }
  38. else if( PlayerInfo[ playerid ][ xAdmin ] == 3 ) {
  39. format( string1, sizeof( string1 ), "[A] Admin 3 - %s: "col_white"%s", ImeIgraca( playerid ), text );
  40. }
  41. else if( PlayerInfo[ playerid ][ xAdmin ] == 2 ) {
  42. format( string1, sizeof( string1 ), "[A] Admin 2 - %s: "col_white"%s", ImeIgraca( playerid ), text );
  43. }
  44. else if( PlayerInfo[ playerid ][ xAdmin ] == 1 ) {
  45. format( string1, sizeof( string1 ), "[A] Admin 1 - %s: "col_white"%s", ImeIgraca( playerid ), text );
  46. }
  47. else if( PlayerInfo[ playerid ][ xSpecAdmin ] == 1 ) {
  48. format( string1, sizeof( string1 ), "[A] Spec Admin - %s: "col_white"%s", ImeIgraca( playerid ), text );
  49. }
  50. AdminPoruka( 0xF6FF00FF, string1 );
  51.  
  52. new string[ 128 ];
  53. format( string, sizeof( string ), "Admin %s: %s", ImeIgraca( playerid ), text );
  54. LogSave( "Ostalo/LogAdminChat.log", string );
  55. return true;
  56. }
  57.  
  58. CMD:hc( playerid, params[] ) {
  59. if( PlayerInfo[ playerid ][ xZatvor ] != 0 ) return GRESKA( playerid, "Ne mozes koristi ovu komandu dok si u jailu." );
  60. if( PlayerInfo[ playerid ][ xMute ] != 0) return GRESKA( playerid, "Ne mozete pricati, usutkani ste.");
  61. new text[ 128 ], string1[180];
  62. if( sscanf( params, "s[128]", text ) ) return KORISCENJE( playerid, "/hc [ text ]" );
  63. if( PlayerInfo[ playerid ][ xHelper ] >= 1 || PlayerInfo[ playerid ][ xAdmin ] >= 1 || PlayerInfo[ playerid ][ xSpecAdmin ] >= 1 ) {
  64. if( ToggedE == false ) return GRESKA( playerid, "HC chat je trenutno iskljucen od strane Admina." );
  65. if( PlayerInfo[ playerid ][ xSkriptaRank ] == 1 ) {
  66. format( string1, sizeof( string1 ), "[HC] Skripter - %s: "col_white"%s", ImeIgraca( playerid ), text );
  67. }
  68. else if( PlayerInfo[ playerid ][ xSkriptaRank ] == 2 ) {
  69. format( string1, sizeof( string1 ), "[HC] Skripter - %s: "col_white"%s", ImeIgraca( playerid ), text );
  70. }
  71. else if( PlayerInfo[ playerid ][ xSkriptaRank ] == 3 ) {
  72. format( string1, sizeof( string1 ), "[HC] Mapper - %s: "col_white"%s", ImeIgraca( playerid ), text );
  73. }
  74. else if( PlayerInfo[ playerid ][ xSkriptaRank ] == 6 ) {
  75. format( string1, sizeof( string1 ), "[HC] Co. Owner - %s: "col_white"%s", ImeIgraca( playerid ), text );
  76. }
  77. else if( PlayerInfo[ playerid ][ xSkriptaRank ] == 7 ) {
  78. format( string1, sizeof( string1 ), "[HC] Head Mapper - %s: "col_white"%s", ImeIgraca( playerid ), text );
  79. }
  80. else if( PlayerInfo[ playerid ][ xSkriptaRank ] == 8 ) {
  81. format( string1, sizeof( string1 ), "[HC] Predsednik - %s: "col_white"%s", ImeIgraca( playerid ), text );
  82. }
  83. else if( PlayerInfo[ playerid ][ xAdmin ] == 7 ) {
  84. format( string1, sizeof(string1), "[HC] Owner - %s: "col_white"%s", ImeIgraca( playerid ), text );
  85. }
  86. else if( PlayerInfo[ playerid ][ xAdmin ] == 6 ) {
  87. format( string1, sizeof(string1), "[HC] Direktor - %s: "col_white"%s", ImeIgraca( playerid ), text );
  88. }
  89. else if( PlayerInfo[ playerid ][ xAdmin ] == 5 ) {
  90. format( string1, sizeof(string1), "[HC] Head Admin - %s: "col_white"%s", ImeIgraca( playerid ), text );
  91. }
  92. else if( PlayerInfo[ playerid ][ xAdmin ] == 4 ) {
  93. format( string1, sizeof( string1 ), "[HC] Admin 4 - %s: "col_white"%s", ImeIgraca( playerid ), text );
  94. }
  95. else if( PlayerInfo[ playerid ][ xAdmin ] == 3 ) {
  96. format( string1, sizeof( string1 ), "[HC] Admin 3 - %s: "col_white"%s", ImeIgraca( playerid ), text );
  97. }
  98. else if( PlayerInfo[ playerid ][ xAdmin ] == 2 ) {
  99. format( string1, sizeof( string1 ), "[HC] Admin 2 - %s: "col_white"%s", ImeIgraca( playerid ), text );
  100. }
  101. else if( PlayerInfo[ playerid ][ xAdmin ] == 1 ) {
  102. format( string1, sizeof( string1 ), "[HC] Admin 1 - %s: "col_white"%s", ImeIgraca( playerid ), text );
  103. }
  104. else if( PlayerInfo[ playerid ][ xSpecAdmin ] == 1 ) {
  105. format( string1, sizeof(string1), "[HC] Spec Admin - %s: "col_white"%s", ImeIgraca( playerid ), text );
  106. }
  107. else if( PlayerInfo[ playerid ][ xHelper ] == 3 ) {
  108. format( string1, sizeof(string1), "[HC] V. Helpera - %s: "col_white"%s", ImeIgraca( playerid ), text );
  109. }
  110. else if( PlayerInfo[ playerid ][ xHelper ] >= 1 && PlayerInfo[ playerid ][ xHelper ] <= 2 ) {
  111. format( string1, sizeof(string1), "[HC] Helper - (%d) %s: "col_white"%s", PlayerInfo[ playerid ][ xHelper ], ImeIgraca( playerid ), text );
  112. }
  113. RPTChat( ZELENA, string1 );
  114. new string[ 128 ];
  115. format( string, sizeof( string ), "Admin/Helper %s: %s", ImeIgraca( playerid ), text );
  116. LogSave( "Ostalo/LogAdminChat.log", string );
  117. }
  118. else return GRESKA( playerid, "Niste u mogucnosti koristiti ovu komandu." );
  119. return true;
  120. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement