Guest User

[vTc]Server Operator

a guest
Apr 13th, 2014
263
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 11.12 KB | None | 0 0
  1. /*Thank you for downloading this  filterscript, Please don't remove credits because i had really hard worked also i scripted this on tablet with help of my friend 'vassilis' special thanks to him.
  2. Filterscript by:-
  3. .######..##..##..######...####...######.
  4. .##......##..##....##....##..##......##.
  5. .##......##..##....##....##..........##.
  6. .##.......####.....##....##..##......##.
  7. .######....##......##.....####...######.
  8. ........................................*/
  9.  
  10.  
  11. // This is a comment
  12. // uncomment the line below if you want to write a filterscript
  13. //#define FILTERSCRIPT
  14.  
  15. #include <a_samp>
  16. #include <zcmd>
  17.  
  18. #define dialog_ask 2004
  19. #if defined FILTERSCRIPT
  20.  
  21. public OnFilterScriptInit()
  22. {
  23.         print("\n--------------------------------------");
  24.         print(" Server Operator Filterscript by [vTc]Patroool");
  25.         print("--------------------------------------\n");
  26.         return 1;
  27. }
  28.  
  29. public OnFilterScriptExit()
  30. {
  31.         return 1;
  32. }
  33.  
  34. #else
  35.  
  36. main()
  37. {
  38.         print("\n----------------------------------");
  39.         print(" Blank Gamemode by your name here");
  40.         print("----------------------------------\n");
  41. }
  42.  
  43. #endif
  44.  
  45. public OnGameModeInit()
  46. {
  47.         // Don't use these lines if it's a filterscript
  48.         return 1;
  49. }
  50.  
  51. public OnGameModeExit()
  52. {
  53.         return 1;
  54. }
  55.  
  56. /*public OnPlayerRequestClass(playerid, classid)
  57. {
  58.         SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
  59.         SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
  60.         SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
  61.         return 1;
  62. }
  63. */
  64.  
  65. public OnPlayerConnect(playerid)
  66. {
  67.         return 1;
  68. }
  69.  
  70. public OnPlayerDisconnect(playerid, reason)
  71. {
  72.         return 1;
  73. }
  74.  
  75. public OnPlayerSpawn(playerid)
  76. {
  77.         SendClientMessage(playerid,0xFF0000FF, "{00FF00}[OPERATOR]: {FFFFFF}Hello, Need help? Ask me. Use (/operator)");
  78.         return 1;
  79. }
  80.  
  81. public OnPlayerDeath(playerid, killerid, reason)
  82. {
  83.         return 1;
  84. }
  85.  
  86. public OnVehicleSpawn(vehicleid)
  87. {
  88.         return 1;
  89. }
  90.  
  91. public OnVehicleDeath(vehicleid, killerid)
  92. {
  93.         return 1;
  94. }
  95.  
  96. public OnPlayerText(playerid, text[])
  97. {
  98.         if(strfind("help","help me",true)!= -) {
  99.         SendClientMessage(playerid,-1,"{00FF00}[OPERATOR]: {FFFFFF}I can help you, Use /operator :).");
  100.         }
  101.         return 1;
  102. }
  103.  
  104. public OnPlayerCommandText(playerid, cmdtext[])
  105. {
  106.         if (strcmp("/mycommand", cmdtext, true, 10) == 0)
  107.         {
  108.                 // Do something here
  109.                 return 1;
  110.         }
  111.         return 0;
  112. }
  113.  
  114. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  115. {
  116.         return 1;
  117. }
  118.  
  119. public OnPlayerExitVehicle(playerid, vehicleid)
  120. {
  121.         return 1;
  122. }
  123.  
  124. public OnPlayerStateChange(playerid, newstate, oldstate)
  125. {
  126.         return 1;
  127. }
  128.  
  129. public OnPlayerEnterCheckpoint(playerid)
  130. {
  131.         return 1;
  132. }
  133.  
  134. public OnPlayerLeaveCheckpoint(playerid)
  135. {
  136.         return 1;
  137. }
  138.  
  139. public OnPlayerEnterRaceCheckpoint(playerid)
  140. {
  141.         return 1;
  142. }
  143.  
  144. public OnPlayerLeaveRaceCheckpoint(playerid)
  145. {
  146.         return 1;
  147. }
  148.  
  149. public OnRconCommand(cmd[])
  150. {
  151.         return 1;
  152. }
  153.  
  154. public OnPlayerRequestSpawn(playerid)
  155. {
  156.         return 1;
  157. }
  158.  
  159. public OnObjectMoved(objectid)
  160. {
  161.         return 1;
  162. }
  163.  
  164. public OnPlayerObjectMoved(playerid, objectid)
  165. {
  166.         return 1;
  167. }
  168.  
  169. public OnPlayerPickUpPickup(playerid, pickupid)
  170. {
  171.         return 1;
  172. }
  173.  
  174. public OnVehicleMod(playerid, vehicleid, componentid)
  175. {
  176.         return 1;
  177. }
  178.  
  179. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  180. {
  181.         return 1;
  182. }
  183.  
  184. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  185. {
  186.         return 1;
  187. }
  188.  
  189. public OnPlayerSelectedMenuRow(playerid, row)
  190. {
  191.         return 1;
  192. }
  193.  
  194. public OnPlayerExitedMenu(playerid)
  195. {
  196.         return 1;
  197. }
  198.  
  199. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  200. {
  201.         return 1;
  202. }
  203.  
  204. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  205. {
  206.         return 1;
  207. }
  208.  
  209. public OnRconLoginAttempt(ip[], password[], success)
  210. {
  211.         return 1;
  212. }
  213.  
  214. public OnPlayerUpdate(playerid)
  215. {
  216.         return 1;
  217. }
  218.  
  219. public OnPlayerStreamIn(playerid, forplayerid)
  220. {
  221.         return 1;
  222. }
  223.  
  224. public OnPlayerStreamOut(playerid, forplayerid)
  225. {
  226.         return 1;
  227. }
  228.  
  229. public OnVehicleStreamIn(vehicleid, forplayerid)
  230. {
  231.         return 1;
  232. }
  233.  
  234. public OnVehicleStreamOut(vehicleid, forplayerid)
  235. {
  236.         return 1;
  237. }
  238.  
  239. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  240. {
  241.             switch( dialogid )
  242.     {
  243.         case dialog_ask:
  244.           {
  245.         if(strfind("How to spawn a car","tune",true)!= -1) {  
  246.         SendClientMessage(playerid,-1,"{00FF00}[OPERATOR]: {FFFFFF} Type /veh to spawn vehicle, For tuning you can go to garage.");//edit
  247.         }
  248.         if(strfind("who is admin","admin",true)!= -) {
  249.         SendClientMessage(playerid,-1,"{00FF00}[OPERATOR]: {FFFFFF}Type /admins to see our online administrators.");
  250.         }
  251.         if(strfind("who is owner","server",true)!= -1) {  
  252.         SendClientMessage(playerid,-1,"{00FF00}[OPERATOR]: {FFFFFF} Server is created by [vTc]Patroool.");//edit
  253.         }
  254.         if(strfind("report","hacker",true)!= -1) {  
  255.         SendClientMessage(playerid,-1,"{00FF00}[OPERATOR]: {FFFFFF} Please instead of saying me use /report [ID] [REASON].");
  256.         }
  257.         if(strfind("weapon","buy weapon",true)!= -) {
  258.         SendClientMessage(playerid,-1,"{00FF00}[OPERATOR]: {FFFFFF}You can buy weapons at ammunation. ");
  259.         }
  260.         if(strfind("how to be moderator","how to be admin",true)!= -) {
  261.         SendClientMessage(playerid,-1,"{00FF00}[OPERATOR]: {FFFFFF}To join our team, Log on to our forum (http://yourforumadress.com) and apply. ");//edit
  262.         }
  263.         if(strfind("forum","forums adress",true)!= -) {
  264.         SendClientMessage(playerid,-1,"{00FF00}[OPERATOR]: {FFFFFF}Our server forum adress is http://youradress.com ");//edit
  265.         }
  266.         if(strfind("weapon","buy weapon",true)!= -) {
  267.         SendClientMessage(playerid,-1,"{00FF00}[OPERATOR]: {FFFFFF}You can buy weapons at ammunation. ");
  268.         }
  269.         if(strfind("password","register",true)!= -) {
  270.         SendClientMessage(playerid,-1,"{00FF00}[OPERATOR]: {FFFFFF}To register your account on your server usem/register. ");
  271.         SendClientMessage(playerid,-1,"{00FF00}[OPERATOR]: {FFFFFF}If you have anything wrong with your account, Please contact server owner (OwnerName). ");//edit
  272.         }
  273.         if(strfind("teleport","teleports",true)!= -1) {
  274.         SendClientMessage(playerid,-1,"{00FF00}[OPERATOR]: {FFFFFF}You can see list of all teleport commands here /telecommand. ");//edit
  275.         }
  276.         if(strfind("","",true)!= -1) {
  277.         SendClientMessage(playerid,-1,"{00FF00}[OPERATOR]: {FFFFFF}Please type something, You cannot leave this field empty. ");
  278.         }
  279.         if(strfind("server ip","ip",true)!= -1) {
  280.         SendClientMessage(playerid,-1,"{00FF00}[OPERATOR]: {FFFFFF}Our server ip is xx.xx.xx.xx:xxxx, Add our server to favorite. ");//edit
  281.         }
  282.         if(strfind("Donate","how to be vip",true)!= -1) {
  283.         SendClientMessage(playerid,-1,"{00FF00}[OPERATOR]: {FFFFFF}To get our VIP service, Kindly log on to http://forumadress.com, Click donate button");//edit
  284.         }
  285.         if(strfind("bug","found bug",true)!= -1) {
  286.         SendClientMessage(playerid,-1,"{00FF00}[OPERATOR]: {FFFFFF}Please report bug(s) on forum. ");
  287.         }
  288.         if(strfind("who are you", "who the hell you think you are",true)!= -1) {
  289.         SendClientMessage(playerid,-1,"{00FF00}[OPERATOR]: {FFFFFF}Got you noob, I recorded your chat!");
  290.         }
  291.         if(strfind("where are you brother","where are you",true)!= -1) {
  292.         SendClientMessage(playerid,-1,"{00FF00}[OPERATOR]: {FFFFFF}Sorry, Currently i am busy, Talk you later. ");
  293.         }//Extra formats added, Just add your server info etc.
  294.         if(strfind("type first word/question","type second word/question",true)!= -1) {
  295.         SendClientMessage(playerid,-1,"{00FF00}[OPERATOR]: {FFFFFF}Your answer here.");
  296.         }
  297.         If(strfind("type first word/question","type second word/question",true)!= -1) {
  298.         SendClientMessage(playerid,-1,"{00FF00}[OPERATOR]: {FFFFFF}Your answer here.");
  299.         }
  300.         if(strfind("type first word/question","type second word/question",true)!= -1) {
  301.         SendClientMessage(playerid,-1,"{00FF00}[OPERATOR]: {FFFFFF}Your answer here.");
  302.         }
  303.         if(strfind("type first word/question","type second word/question",true)!= -1) {
  304.         SendClientMessage(playerid,-1,"{00FF00}[OPERATOR]: {FFFFFF}Your answer here.");
  305.         }
  306.         if(strfind("type first word/question","type second word/question",true)!= -1) {
  307.         SendClientMessage(playerid,-1,"{00FF00}[OPERATOR]: {FFFFFF}Your answer here.");
  308.         }
  309.         if(strfind("type first word/question","type second word/question",true)!= -1) {
  310.         SendClientMessage(playerid,-1,"{00FF00}[OPERATOR]: {FFFFFF}Your answer here.");
  311.         }
  312.         if(strfind("type first word/question","type second word/question",true)!= -1) {
  313.         SendClientMessage(playerid,-1,"{00FF00}[OPERATOR]: {FFFFFF}Your answer here.");
  314.         }
  315.         if(strfind("type first word/question","type second word/question",true)!= -1) {
  316.         SendClientMessage(playerid,-1,"{00FF00}[OPERATOR]: {FFFFFF}Your answer here.");
  317.         }
  318.         if(strfind("type first word/question","type second word/question",true)!= -1) {
  319.         SendClientMessage(playerid,-1,"{00FF00}[OPERATOR]: {FFFFFF}Your answer here.");
  320.         }
  321.         if(strfind("type first word/question","type second word/question",true)!= -1) {
  322.         SendClientMessage(playerid,-1,"{00FF00}[OPERATOR]: {FFFFFF}Your answer here.");
  323.         }
  324.         if(strfind("type first word/question","type second word/question",true)!= -1) {
  325.         SendClientMessage(playerid,-1,"{00FF00}[OPERATOR]: {FFFFFF}Your answer here.");
  326.         }
  327.         if(strfind("type first word/question","type second word/question",true)!= -1) {
  328.         SendClientMessage(playerid,-1,"{00FF00}[OPERATOR]: {FFFFFF}Your answer here.");
  329.         }
  330.         if(strfind("type first word/question","type second word/question",true)!= -1) {
  331.         SendClientMessage(playerid,-1,"{00FF00}[OPERATOR]: {FFFFFF}Your answer here.");
  332.         }
  333.         if(strfind("type first word/question","type second word/question",true)!= -1) {
  334.         SendClientMessage(playerid,-1,"{00FF00}[OPERATOR]: {FFFFFF}Your answer here.");
  335.         }
  336.         if(strfind("type first word/question","type second word/question",true)!= -1) {
  337.         SendClientMessage(playerid,-1,"{00FF00}[OPERATOR]: {FFFFFF}Your answer here.");
  338.         }
  339.         if(strfind("type first word/question","type second word/question",true)!= -1) {
  340.         SendClientMessage(playerid,-1,"{00FF00}[OPERATOR]: {FFFFFF}Your answer here.");
  341.          }
  342.         }
  343.         return 1;
  344. }
  345.  
  346. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  347. {
  348.         return 1;
  349. }
  350.  
  351. CMD:operator(playerid,params[])
  352. {
  353.         ShowPlayerDialog(playerid,dialog_ask,DIALOG_STYLE_INPUT,"Request Ask","Please type below what you want!","Ok","");
  354.         return 1;
  355. }
Advertisement
Add Comment
Please, Sign In to add comment