Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // === [ INC. ] === //
- #include <a_samp>
- #include <sscanf2>
- #include <ZCMD>
- // === [ DEF. ] === //
- #if defined FILTERSCRIPT
- // === [ ESC. ] === //
- public OnFilterScriptInit()
- {
- print("Admin Panel v1.0 | by Edward");
- print("FB Profile: Tonson Vasquez | Enjoy!");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- #else
- main()
- {
- print("-------------");
- }
- #endif
- public OnGameModeInit()
- {
- return 1;
- }
- public OnGameModeExit()
- {
- return 1;
- }
- public OnPlayerRequestClass(playerid, classid)
- {
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- return 1;
- }
- //ZBOG ERRORA JE OVDE STAVLJENO://
- #define ZUTA "{F3FF02}"
- #define ORANGE "{FFAF00}"
- #define SPLAVA "{00C0FF}"
- #define BELA "{FFFFFF}"
- #define ZELENA "{6EF83C}"
- #define CRVENA "{F81414}"
- #pragma tabsize 0
- //
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == 1000)
- {
- if(response)
- {
- if(listitem == 0)
- {
- ShowPlayerDialog(playerid,1780,DIALOG_STYLE_INPUT,""ZELENA"SERVER IME","Postavite novo ime servera","Postavi","Izadji");
- }
- if(listitem == 1)
- {
- ShowPlayerDialog(playerid,1781,DIALOG_STYLE_INPUT,""ZELENA"IME MAPE","Postavite novo ime mape","Postavi","Izadji");
- }
- if(listitem == 2)
- {
- ShowPlayerDialog(playerid,1782,DIALOG_STYLE_INPUT,""ZELENA"RCON Lozinka","Postavite novu RCON Lozinku","Postavi","Izadji");
- }
- if(listitem == 3)
- {
- GameModeExit();
- }
- if(listitem == 4)
- {
- ShowPlayerDialog(playerid,1783,DIALOG_STYLE_INPUT,""ZELENA"SERVER SAJT","Postavite novo ime sajta","Postavi","Izadji");
- }
- if(listitem == 5)
- {
- ShowPlayerDialog(playerid,1784,DIALOG_STYLE_INPUT,""ZELENA"SERVER IME","Postavite novu Server Lozinku","Postavi","Izadji");
- }
- }
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- if(dialogid == 1780)
- {
- new string[128];
- if(response)
- {
- format(string,sizeof(string),"hostname %s",inputtext);
- SendRconCommand(string);
- format(string,sizeof(string),""CRVENA"[IME:SERVERA]: "ZELENA"Promenili ste 'Ime Servera', ono glasi: "BELA"%s",inputtext);
- SendClientMessage(playerid, -1, string);
- }
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- if(dialogid == 1781)
- {
- new string[128];
- if(response)
- {
- format(string,sizeof(string),"mapname %s",inputtext);
- SendRconCommand(string);
- format(string,sizeof(string),""CRVENA"[IME:SERVERA]: "ZELENA"Promenili ste 'Server Mapu', ona glasi: "BELA"%s",inputtext);
- SendClientMessage(playerid, -1, string);
- }
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- if(dialogid == 1782)
- {
- new string[128];
- if(response)
- {
- format(string,sizeof(string),"rcon_password %s",inputtext);
- SendRconCommand(string);
- format(string,sizeof(string),""CRVENA"[IME:SERVERA]: "ZELENA"Promenili ste 'RCON Sifru', ona glasi: "BELA"%s",inputtext);
- SendClientMessage(playerid, -1, string);
- }
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- if(dialogid == 1783)
- {
- new string[128];
- if(response)
- {
- format(string,sizeof(string),"weburl %s",inputtext);
- SendRconCommand(string);
- format(string,sizeof(string),""CRVENA"[IME:SERVERA]: "ZELENA"Promenili ste 'Sajt Servera', on glasi: "BELA"%s",inputtext);
- SendClientMessage(playerid, -1, string);
- }
- return 1;
- }
- ////////////////////////////////////////////////////////////////////////////////
- if(dialogid == 1784)
- {
- new string[128];
- if(response)
- {
- format(string,sizeof(string),"password %s",inputtext);
- SendRconCommand(string);
- format(string,sizeof(string),""CRVENA"[IME:SERVERA]: "ZELENA"Promenili ste 'Server Sifru', ona glasi: "BELA"%s",inputtext);
- SendClientMessage(playerid, -1, string);
- }
- }
- return 1;
- }
- CMD:apanel(playerid, params[])
- {
- if(IsPlayerAdmin(playerid))
- {
- 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");
- }
- else
- {
- SendClientMessage(playerid,-1,"Nisi Autorizovan!");
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement