Guest User

Version 1.0 Updated. Small Admin Panel

a guest
May 27th, 2016
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.85 KB | None | 0 0
  1. /*===================================CREDITS====================================
  2. FILTER SCRIPT CREATED BY
  3. Muhammad Bilal
  4. Small Admin System
  5. v1.0
  6. http://forum.sa-mp.com/showthread.php?t=468518
  7.  
  8. if you like this system Reputation +1 thanks.
  9. Released date and Time 09/10/2013, 03:29 AM
  10. Fixed v 1.0 Date 5/27/2016
  11. //============================================================================*/
  12.  
  13. #include <a_samp>
  14. #include <zcmd>
  15. #include <foreach>
  16.  
  17. #define ADMIN_PANEL 1
  18.  
  19. #if defined FILTERSCRIPT
  20.  
  21. public OnFilterScriptInit()
  22. {
  23. print("\n--------------------------------------");
  24. print(" Small Admin panels by Dom");
  25. print("Released date and Time 09/10/2013, 03:29 AM\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(" Small Admin panels by Dom");
  40. print("----------------------------------\n");
  41. }
  42.  
  43. #endif
  44.  
  45. public OnPlayerConnect(playerid)
  46. {
  47. SendClientMessage(playerid,-1,"[SYSTEM]: Admin Panel successfully Loaded created by Muhammad Bilal.");
  48. return 1;
  49. }
  50.  
  51. CMD:dmenu(playerid, params[])
  52. {
  53. if(!IsPlayerAdmin(playerid))return SendClientMessage(playerid,0xFF641AFF,"SERVER: You need to be rcon admin to use this cmd.");
  54. ShowPlayerDialog(playerid, ADMIN_PANEL, DIALOG_STYLE_LIST, "Dom panel", "Freezeall\nUnfreezeall\nArmourall\nHealall\nSpawnall\nMorning\nNoon\nEvening\nRocketLauncher to all\nChainsaw to all\nM4 to all\nGernadetoall\nSawnoff to all\nDisarmall\nClearchat\nSkydiveevent\nParachute\nDanceall1\nDanceall2\nDanceall3\nBeerall\nhat+Parrotall\nStopdance", "OK", "Cancel");
  55. return 1;
  56. }
  57.  
  58. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  59. {
  60. if(dialogid == ADMIN_PANEL && response)
  61. {
  62. foreach(Player,i)
  63. {
  64. switch(listitem)
  65. {
  66. case 0: TogglePlayerControllable(i, false),GameTextForPlayer(i,"~w~All Players Are Freezed By ~r~Admin",3000,1); // Freeze the player
  67. case 1: TogglePlayerControllable(i, true),GameTextForPlayer(i,"~w~All Players Are Un-Freezed By ~r~Admin",3000,1); // unFreeze the player
  68. case 2: SetPlayerArmour(i, 100.0),GameTextForPlayer(i,"~r~Admin ~w~ Give all Player Armour",3000,1);
  69. case 3: SetPlayerHealth(i, 100),GameTextForPlayer(i,"~r~Admin Set All Health to 100 given",3000,1);
  70. case 4: SpawnPlayer(i),GameTextForPlayer(i,"~w~All Player Spawned by Admin",3000,1);
  71. case 5: SetPlayerTime(i,7,0),GameTextForPlayer(i,"~r~ Admin ~w~ Set all Time to Morning",3000,1); //morning
  72. case 6: SetPlayerTime(i,12,0),GameTextForPlayer(i,"~r~ Admin ~w~ Set all Time to Noon ",3000,1); //noon
  73. case 7: SetPlayerTime(i,0,0),GameTextForPlayer(i,"~r~ Admin ~w~ Set all Time to Mid Night ",3000,1); //midnight
  74. case 8: GivePlayerWeapon(i, 35, 10),GameTextForPlayer(i,"~w~Rocket Lanchers ~r~given",3000,1);
  75. case 9: GivePlayerWeapon(i,9, 1),GameTextForPlayer(i,"~r~Admin ~w~ Give all Player Chainsaw ",3000,1);
  76. case 10:GivePlayerWeapon(i,31, 150),GameTextForPlayer(i,"~r~Admin ~w~ Give all Player M4 ",3000,1);
  77. case 11:GivePlayerWeapon(i,16, 10),GameTextForPlayer(i,"~r~Admin ~w~ Give all Player 10 Gernades ",3000,1);
  78. case 12:GivePlayerWeapon(i,26, 100),GameTextForPlayer(i,"~r~Admin ~w~ Give all Player Sawnoff Shotgun",3000,1);
  79. case 13:ResetPlayerWeapons(i),GameTextForPlayer(i,"~w~All Players Are Disarm By ~r~Admin",3000,1);
  80. case 14:GameTextForPlayer(i,"~r~Admin Clear All Player Chat",3000,1),SendClientMessageToAll(-1,"");
  81. case 15:GameTextForPlayer(i,"~b~All Player are Teleported to Skydive Place By~r~Admin",3000,1),GivePlayerWeapon(i,46,10),SetPlayerPos(i, 416.54, 1655.75, 710.00);
  82. case 16:GivePlayerWeapon(i,46,10), GameTextForPlayer(i,"~b~Parachute given to All Player By ~r~Admin",3000,1);
  83. case 17:GameTextForPlayer(i,"~b~Dance Chant ~r~yo yo yo",3000,1),ApplyAnimation(i,"RIOT","RIOT_CHANT", 4.0, 1, 0, 0, 0, 0);
  84. case 18:GameTextForPlayer(i,"~b~Dance Chant ~r~yo yo yo",3000,1),ApplyAnimation(i,"DANCING", "DAN_Down_A", 4.0, 1, 0, 0, 0, 0);
  85. case 19:GameTextForPlayer(i,"~b~Dance Baby ~r~yo yo yo",3000,1),ApplyAnimation(i,"DANCING", "dnce_M_d", 4.0, 1, 0, 0, 0, 0);
  86. case 20:GameTextForPlayer(i,"~b~Beer Given to All Player by ~r~Admin",3000,1),SetPlayerSpecialAction(i,SPECIAL_ACTION_DRINK_BEER);
  87. case 21:GameTextForPlayer(i,"~b~Hat+Parrot Given to Player by ~r~Admin",3000,1),SetPlayerAttachedObject( i, 0, 19137, 2, 0.100626, -0.003899, 0.000000, 357.376159, 1.029232, 351.574798, 1.000000, 1.000000, 1.000000 ),SetPlayerAttachedObject(i, 2, 19079, 1, 0.310804, -0.042321, -0.145831, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 ); // TheParrot2 - Parrot
  88. case 22:GameTextForPlayer(i,"~b~Dance stop by Admin",3000,1),ApplyAnimation(i, "CARRY", "crry_prtial", 2.0, 0, 0, 0, 0, 0);
  89. }
  90. }
  91. }
  92. return 0;
  93. }
Add Comment
Please, Sign In to add comment