Guest User

Untitled

a guest
Apr 28th, 2012
575
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.53 KB | None | 0 0
  1. //FilterScript by Mayk Spettres !
  2.  
  3. #include <a_samp>
  4.  
  5. #if defined FILTERSCRIPT
  6. #define SCM SendClientMessage
  7. #define INFO "{37F906}"
  8. #define BELA "{FFFFFF}"
  9.  
  10. public OnFilterScriptInit()
  11. {
  12. print("\n--------------------------------------");
  13. print(" Tim Sistem by Mayk Loaded!");
  14. print("--------------------------------------\n");
  15. return 1;
  16. }
  17.  
  18. public OnFilterScriptExit()
  19. {
  20. print("\n--------------------------------------");
  21. print(" Tim Sistem by Mayk Unloaded!");
  22. print("--------------------------------------\n");
  23. return 1;
  24. }
  25.  
  26. public OnPlayerConnect(playerid)
  27. {
  28. SCM(playerid, BELA,"{37F906}INFO:{FFFFFF}Ovoj Server koristi Admin Panel FilterSkripta od Mayk Spettres");
  29. return 1;
  30. }
  31. public OnPlayerLogin(playerid,password[])
  32. {
  33. if(PlayerInfo[playerid][pAdmin] >= 1)
  34. {
  35. ShowPlayerDialog(playerid, 137, DIALOG_STYLE_INPUT,"Admin Panel","Vnesete go Pinot na Admin Panelot!","Vnesi","Izlezi");
  36. }
  37. return 1;
  38. }
  39. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  40. {
  41. if(dialogid == 137) {
  42. if(!response)
  43. {
  44. Kick(playerid);
  45. return 1;
  46. }
  47. new pass = strval(inputtext);
  48. new playerPass = adminpassword;
  49. if( pass == playerPass)
  50. {
  51. SendClientMessage(playerid,COLOR_WHITE,"INFO:Uspesno se logiravte na Admin Panelot.");
  52. return 1;
  53. }
  54. else {
  55.  
  56. SendClientMessage(playerid,COLOR_GREY,"GRESKA:Pogresna lozinka.");
  57. Kick(playerid);
  58. return 1;
  59. }
  60. }
  61. return 1;
  62. }
  63.  
  64. #endif
Advertisement
Add Comment
Please, Sign In to add comment