Guest User

Untitled

a guest
Dec 15th, 2017
499
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.54 KB | None | 0 0
  1. //FS ~ by Vasic
  2. //Admin Panel v1.0 | Radjen 15.12.2017 | Vreme izrade: 10 Minuta
  3. //Hvala vam sto koristite moje usluge!
  4.  
  5. // === [ INC. ] === //
  6.  
  7. #include <a_samp>
  8. #include <sscanf2>
  9. #include <ZCMD>
  10.  
  11. // === [ DEF. ] === //
  12.  
  13. #if defined FILTERSCRIPT
  14.  
  15. // === [ ESC. ] === //
  16.  
  17. public OnFilterScriptInit()
  18. {
  19. print("Admin Panel v1.0 | by Vasic");
  20. print("BS Profile: Vasic | Enjoy!");
  21. return 1;
  22. }
  23.  
  24. public OnFilterScriptExit()
  25. {
  26. return 1;
  27. }
  28.  
  29. #else
  30.  
  31. main()
  32. {
  33. print("-------------");
  34. }
  35.  
  36. #endif
  37.  
  38. public OnGameModeInit()
  39. {
  40. return 1;
  41. }
  42.  
  43. public OnGameModeExit()
  44. {
  45. return 1;
  46. }
  47.  
  48. public OnPlayerRequestClass(playerid, classid)
  49. {
  50. return 1;
  51. }
  52.  
  53. public OnPlayerConnect(playerid)
  54. {
  55. return 1;
  56. }
  57.  
  58. public OnPlayerDisconnect(playerid, reason)
  59. {
  60. return 1;
  61. }
  62.  
  63. public OnPlayerSpawn(playerid)
  64. {
  65. return 1;
  66. }
  67. //ZBOG ERRORA JE OVDE STAVLJENO://
  68. #define ZUTA "{F3FF02}"
  69. #define ORANGE "{FFAF00}"
  70. #define SPLAVA "{00C0FF}"
  71. #define BELA "{FFFFFF}"
  72. #define ZELENA "{6EF83C}"
  73. #define CRVENA "{F81414}"
  74. #pragma tabsize 0
  75. //
  76. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  77. {
  78. if(dialogid == 1000)
  79. {
  80. if(response)
  81. {
  82. if(listitem == 0)
  83. {
  84. ShowPlayerDialog(playerid,1780,DIALOG_STYLE_INPUT,""ZELENA"SERVER IME","Postavite novo ime servera","Postavi","Izadji");
  85. }
  86. if(listitem == 1)
  87. {
  88. ShowPlayerDialog(playerid,1781,DIALOG_STYLE_INPUT,""ZELENA"IME MAPE","Postavite novo ime mape","Postavi","Izadji");
  89. }
  90. if(listitem == 2)
  91. {
  92. ShowPlayerDialog(playerid,1782,DIALOG_STYLE_INPUT,""ZELENA"RCON Lozinka","Postavite novu RCON Lozinku","Postavi","Izadji");
  93. }
  94. if(listitem == 3)
  95. {
  96. GameModeExit();
  97. }
  98. if(listitem == 4)
  99. {
  100. ShowPlayerDialog(playerid,1783,DIALOG_STYLE_INPUT,""ZELENA"SERVER SAJT","Postavite novo ime sajta","Postavi","Izadji");
  101. }
  102. if(listitem == 5)
  103. {
  104. ShowPlayerDialog(playerid,1784,DIALOG_STYLE_INPUT,""ZELENA"SERVER IME","Postavite novu Server Lozinku","Postavi","Izadji");
  105. }
  106. }
  107. return 1;
  108. }
  109. ////////////////////////////////////////////////////////////////////////////////
  110. if(dialogid == 1780)
  111. {
  112. new string[128];
  113. if(response)
  114. {
  115. format(string,sizeof(string),"hostname %s",inputtext);
  116. SendRconCommand(string);
  117. format(string,sizeof(string),""CRVENA"[IME:SERVERA]: "ZELENA"Promenili ste 'Ime Servera', ono glasi: "BELA"%s",inputtext);
  118. SendClientMessage(playerid, -1, string);
  119. }
  120. return 1;
  121. }
  122. ////////////////////////////////////////////////////////////////////////////////
  123. if(dialogid == 1781)
  124. {
  125. new string[128];
  126. if(response)
  127. {
  128. format(string,sizeof(string),"mapname %s",inputtext);
  129. SendRconCommand(string);
  130. format(string,sizeof(string),""CRVENA"[IME:SERVERA]: "ZELENA"Promenili ste 'Server Mapu', ona glasi: "BELA"%s",inputtext);
  131. SendClientMessage(playerid, -1, string);
  132. }
  133. return 1;
  134. }
  135. ////////////////////////////////////////////////////////////////////////////////
  136. if(dialogid == 1782)
  137. {
  138. new string[128];
  139. if(response)
  140. {
  141. format(string,sizeof(string),"rcon_password %s",inputtext);
  142. SendRconCommand(string);
  143. format(string,sizeof(string),""CRVENA"[IME:SERVERA]: "ZELENA"Promenili ste 'RCON Sifru', ona glasi: "BELA"%s",inputtext);
  144. SendClientMessage(playerid, -1, string);
  145. }
  146. return 1;
  147. }
  148. ////////////////////////////////////////////////////////////////////////////////
  149. if(dialogid == 1783)
  150. {
  151. new string[128];
  152. if(response)
  153. {
  154. format(string,sizeof(string),"weburl %s",inputtext);
  155. SendRconCommand(string);
  156. format(string,sizeof(string),""CRVENA"[IME:SERVERA]: "ZELENA"Promenili ste 'Sajt Servera', on glasi: "BELA"%s",inputtext);
  157. SendClientMessage(playerid, -1, string);
  158. }
  159. return 1;
  160. }
  161. ////////////////////////////////////////////////////////////////////////////////
  162. if(dialogid == 1784)
  163. {
  164. new string[128];
  165. if(response)
  166. {
  167. format(string,sizeof(string),"password %s",inputtext);
  168. SendRconCommand(string);
  169. format(string,sizeof(string),""CRVENA"[IME:SERVERA]: "ZELENA"Promenili ste 'Server Sifru', ona glasi: "BELA"%s",inputtext);
  170. SendClientMessage(playerid, -1, string);
  171. }
  172. }
  173. return 1;
  174. }
  175. CMD:apanel(playerid, params[])
  176. {
  177. if(IsPlayerAdmin(playerid))
  178. {
  179. ShowPlayerDialog(playerid,1000,DIALOG_STYLE_LIST,""ZELENA"Admin Panel "BELA"| "CRVENA"by Vasic",""SPLAVA"Ime Servera\n"ZUTA"Ime Mape\n"ZELENA"RCON Lozinka\n"BELA"Restartuj Server\n"ORANGE"Sajt Servera\n"SPLAVA"Server Sifra","Izaberi","Odustani");
  180. }
  181. else
  182. {
  183. SendClientMessage(playerid,-1,"Nisi Autorizovan!");
  184. }
  185. return 1;
  186. }
Advertisement
Add Comment
Please, Sign In to add comment