Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*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.
- Filterscript by:-
- .######..##..##..######...####...######.
- .##......##..##....##....##..##......##.
- .##......##..##....##....##..........##.
- .##.......####.....##....##..##......##.
- .######....##......##.....####...######.
- ........................................*/
- // This is a comment
- // uncomment the line below if you want to write a filterscript
- //#define FILTERSCRIPT
- #include <a_samp>
- #include <zcmd>
- #define dialog_ask 2004
- #if defined FILTERSCRIPT
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Server Operator Filterscript by [vTc]Patroool");
- print("--------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- #else
- main()
- {
- print("\n----------------------------------");
- print(" Blank Gamemode by your name here");
- print("----------------------------------\n");
- }
- #endif
- public OnGameModeInit()
- {
- // Don't use these lines if it's a filterscript
- return 1;
- }
- public OnGameModeExit()
- {
- return 1;
- }
- /*public OnPlayerRequestClass(playerid, classid)
- {
- SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
- SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
- SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
- return 1;
- }
- */
- public OnPlayerConnect(playerid)
- {
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- SendClientMessage(playerid,0xFF0000FF, "{00FF00}[OPERATOR]: {FFFFFF}Hello, Need help? Ask me. Use (/operator)");
- return 1;
- }
- public OnPlayerDeath(playerid, killerid, reason)
- {
- return 1;
- }
- public OnVehicleSpawn(vehicleid)
- {
- return 1;
- }
- public OnVehicleDeath(vehicleid, killerid)
- {
- return 1;
- }
- public OnPlayerText(playerid, text[])
- {
- if(strfind("help","help me",true)!= -) {
- SendClientMessage(playerid,-1,"{00FF00}[OPERATOR]: {FFFFFF}I can help you, Use /operator :).");
- }
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp("/mycommand", cmdtext, true, 10) == 0)
- {
- // Do something here
- return 1;
- }
- return 0;
- }
- public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
- {
- return 1;
- }
- public OnPlayerExitVehicle(playerid, vehicleid)
- {
- return 1;
- }
- public OnPlayerStateChange(playerid, newstate, oldstate)
- {
- return 1;
- }
- public OnPlayerEnterCheckpoint(playerid)
- {
- return 1;
- }
- public OnPlayerLeaveCheckpoint(playerid)
- {
- return 1;
- }
- public OnPlayerEnterRaceCheckpoint(playerid)
- {
- return 1;
- }
- public OnPlayerLeaveRaceCheckpoint(playerid)
- {
- return 1;
- }
- public OnRconCommand(cmd[])
- {
- return 1;
- }
- public OnPlayerRequestSpawn(playerid)
- {
- return 1;
- }
- public OnObjectMoved(objectid)
- {
- return 1;
- }
- public OnPlayerObjectMoved(playerid, objectid)
- {
- return 1;
- }
- public OnPlayerPickUpPickup(playerid, pickupid)
- {
- return 1;
- }
- public OnVehicleMod(playerid, vehicleid, componentid)
- {
- return 1;
- }
- public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
- {
- return 1;
- }
- public OnVehicleRespray(playerid, vehicleid, color1, color2)
- {
- return 1;
- }
- public OnPlayerSelectedMenuRow(playerid, row)
- {
- return 1;
- }
- public OnPlayerExitedMenu(playerid)
- {
- return 1;
- }
- public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
- {
- return 1;
- }
- public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
- {
- return 1;
- }
- public OnRconLoginAttempt(ip[], password[], success)
- {
- return 1;
- }
- public OnPlayerUpdate(playerid)
- {
- return 1;
- }
- public OnPlayerStreamIn(playerid, forplayerid)
- {
- return 1;
- }
- public OnPlayerStreamOut(playerid, forplayerid)
- {
- return 1;
- }
- public OnVehicleStreamIn(vehicleid, forplayerid)
- {
- return 1;
- }
- public OnVehicleStreamOut(vehicleid, forplayerid)
- {
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- switch( dialogid )
- {
- case dialog_ask:
- {
- if(strfind("How to spawn a car","tune",true)!= -1) {
- SendClientMessage(playerid,-1,"{00FF00}[OPERATOR]: {FFFFFF} Type /veh to spawn vehicle, For tuning you can go to garage.");//edit
- }
- if(strfind("who is admin","admin",true)!= -) {
- SendClientMessage(playerid,-1,"{00FF00}[OPERATOR]: {FFFFFF}Type /admins to see our online administrators.");
- }
- if(strfind("who is owner","server",true)!= -1) {
- SendClientMessage(playerid,-1,"{00FF00}[OPERATOR]: {FFFFFF} Server is created by [vTc]Patroool.");//edit
- }
- if(strfind("report","hacker",true)!= -1) {
- SendClientMessage(playerid,-1,"{00FF00}[OPERATOR]: {FFFFFF} Please instead of saying me use /report [ID] [REASON].");
- }
- if(strfind("weapon","buy weapon",true)!= -) {
- SendClientMessage(playerid,-1,"{00FF00}[OPERATOR]: {FFFFFF}You can buy weapons at ammunation. ");
- }
- if(strfind("how to be moderator","how to be admin",true)!= -) {
- SendClientMessage(playerid,-1,"{00FF00}[OPERATOR]: {FFFFFF}To join our team, Log on to our forum (http://yourforumadress.com) and apply. ");//edit
- }
- if(strfind("forum","forums adress",true)!= -) {
- SendClientMessage(playerid,-1,"{00FF00}[OPERATOR]: {FFFFFF}Our server forum adress is http://youradress.com ");//edit
- }
- if(strfind("weapon","buy weapon",true)!= -) {
- SendClientMessage(playerid,-1,"{00FF00}[OPERATOR]: {FFFFFF}You can buy weapons at ammunation. ");
- }
- if(strfind("password","register",true)!= -) {
- SendClientMessage(playerid,-1,"{00FF00}[OPERATOR]: {FFFFFF}To register your account on your server usem/register. ");
- SendClientMessage(playerid,-1,"{00FF00}[OPERATOR]: {FFFFFF}If you have anything wrong with your account, Please contact server owner (OwnerName). ");//edit
- }
- if(strfind("teleport","teleports",true)!= -1) {
- SendClientMessage(playerid,-1,"{00FF00}[OPERATOR]: {FFFFFF}You can see list of all teleport commands here /telecommand. ");//edit
- }
- if(strfind("","",true)!= -1) {
- SendClientMessage(playerid,-1,"{00FF00}[OPERATOR]: {FFFFFF}Please type something, You cannot leave this field empty. ");
- }
- if(strfind("server ip","ip",true)!= -1) {
- SendClientMessage(playerid,-1,"{00FF00}[OPERATOR]: {FFFFFF}Our server ip is xx.xx.xx.xx:xxxx, Add our server to favorite. ");//edit
- }
- if(strfind("Donate","how to be vip",true)!= -1) {
- SendClientMessage(playerid,-1,"{00FF00}[OPERATOR]: {FFFFFF}To get our VIP service, Kindly log on to http://forumadress.com, Click donate button");//edit
- }
- if(strfind("bug","found bug",true)!= -1) {
- SendClientMessage(playerid,-1,"{00FF00}[OPERATOR]: {FFFFFF}Please report bug(s) on forum. ");
- }
- if(strfind("who are you", "who the hell you think you are",true)!= -1) {
- SendClientMessage(playerid,-1,"{00FF00}[OPERATOR]: {FFFFFF}Got you noob, I recorded your chat!");
- }
- if(strfind("where are you brother","where are you",true)!= -1) {
- SendClientMessage(playerid,-1,"{00FF00}[OPERATOR]: {FFFFFF}Sorry, Currently i am busy, Talk you later. ");
- }//Extra formats added, Just add your server info etc.
- if(strfind("type first word/question","type second word/question",true)!= -1) {
- SendClientMessage(playerid,-1,"{00FF00}[OPERATOR]: {FFFFFF}Your answer here.");
- }
- If(strfind("type first word/question","type second word/question",true)!= -1) {
- SendClientMessage(playerid,-1,"{00FF00}[OPERATOR]: {FFFFFF}Your answer here.");
- }
- if(strfind("type first word/question","type second word/question",true)!= -1) {
- SendClientMessage(playerid,-1,"{00FF00}[OPERATOR]: {FFFFFF}Your answer here.");
- }
- if(strfind("type first word/question","type second word/question",true)!= -1) {
- SendClientMessage(playerid,-1,"{00FF00}[OPERATOR]: {FFFFFF}Your answer here.");
- }
- if(strfind("type first word/question","type second word/question",true)!= -1) {
- SendClientMessage(playerid,-1,"{00FF00}[OPERATOR]: {FFFFFF}Your answer here.");
- }
- if(strfind("type first word/question","type second word/question",true)!= -1) {
- SendClientMessage(playerid,-1,"{00FF00}[OPERATOR]: {FFFFFF}Your answer here.");
- }
- if(strfind("type first word/question","type second word/question",true)!= -1) {
- SendClientMessage(playerid,-1,"{00FF00}[OPERATOR]: {FFFFFF}Your answer here.");
- }
- if(strfind("type first word/question","type second word/question",true)!= -1) {
- SendClientMessage(playerid,-1,"{00FF00}[OPERATOR]: {FFFFFF}Your answer here.");
- }
- if(strfind("type first word/question","type second word/question",true)!= -1) {
- SendClientMessage(playerid,-1,"{00FF00}[OPERATOR]: {FFFFFF}Your answer here.");
- }
- if(strfind("type first word/question","type second word/question",true)!= -1) {
- SendClientMessage(playerid,-1,"{00FF00}[OPERATOR]: {FFFFFF}Your answer here.");
- }
- if(strfind("type first word/question","type second word/question",true)!= -1) {
- SendClientMessage(playerid,-1,"{00FF00}[OPERATOR]: {FFFFFF}Your answer here.");
- }
- if(strfind("type first word/question","type second word/question",true)!= -1) {
- SendClientMessage(playerid,-1,"{00FF00}[OPERATOR]: {FFFFFF}Your answer here.");
- }
- if(strfind("type first word/question","type second word/question",true)!= -1) {
- SendClientMessage(playerid,-1,"{00FF00}[OPERATOR]: {FFFFFF}Your answer here.");
- }
- if(strfind("type first word/question","type second word/question",true)!= -1) {
- SendClientMessage(playerid,-1,"{00FF00}[OPERATOR]: {FFFFFF}Your answer here.");
- }
- if(strfind("type first word/question","type second word/question",true)!= -1) {
- SendClientMessage(playerid,-1,"{00FF00}[OPERATOR]: {FFFFFF}Your answer here.");
- }
- if(strfind("type first word/question","type second word/question",true)!= -1) {
- SendClientMessage(playerid,-1,"{00FF00}[OPERATOR]: {FFFFFF}Your answer here.");
- }
- }
- return 1;
- }
- public OnPlayerClickPlayer(playerid, clickedplayerid, source)
- {
- return 1;
- }
- CMD:operator(playerid,params[])
- {
- ShowPlayerDialog(playerid,dialog_ask,DIALOG_STYLE_INPUT,"Request Ask","Please type below what you want!","Ok","");
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment