Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //FilterScript by Mayk Spettres !
- #include <a_samp>
- #if defined FILTERSCRIPT
- #define SCM SendClientMessage
- #define INFO "{37F906}"
- #define BELA "{FFFFFF}"
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Tim Sistem by Mayk Loaded!");
- print("--------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- print("\n--------------------------------------");
- print(" Tim Sistem by Mayk Unloaded!");
- print("--------------------------------------\n");
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- SCM(playerid, BELA,"{37F906}INFO:{FFFFFF}Ovoj Server koristi Admin Panel FilterSkripta od Mayk Spettres");
- return 1;
- }
- public OnPlayerLogin(playerid,password[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 1)
- {
- ShowPlayerDialog(playerid, 137, DIALOG_STYLE_INPUT,"Admin Panel","Vnesete go Pinot na Admin Panelot!","Vnesi","Izlezi");
- }
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == 137) {
- if(!response)
- {
- Kick(playerid);
- return 1;
- }
- new pass = strval(inputtext);
- new playerPass = adminpassword;
- if( pass == playerPass)
- {
- SendClientMessage(playerid,COLOR_WHITE,"INFO:Uspesno se logiravte na Admin Panelot.");
- return 1;
- }
- else {
- SendClientMessage(playerid,COLOR_GREY,"GRESKA:Pogresna lozinka.");
- Kick(playerid);
- return 1;
- }
- }
- return 1;
- }
- #endif
Advertisement
Add Comment
Please, Sign In to add comment