Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*===================================CREDITS====================================
- FILTER SCRIPT CREATED BY
- Muhammad Bilal
- Small Admin System
- v1.0
- http://forum.sa-mp.com/showthread.php?t=468518
- if you like this system Reputation +1 thanks.
- Released date and Time 09/10/2013, 03:29 AM
- Fixed v 1.0 Date 5/27/2016
- //============================================================================*/
- #include <a_samp>
- #include <zcmd>
- #include <foreach>
- #define ADMIN_PANEL 1
- #if defined FILTERSCRIPT
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Small Admin panels by Dom");
- print("Released date and Time 09/10/2013, 03:29 AM\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- #else
- main()
- {
- print("\n----------------------------------");
- print(" Small Admin panels by Dom");
- print("----------------------------------\n");
- }
- #endif
- public OnPlayerConnect(playerid)
- {
- SendClientMessage(playerid,-1,"[SYSTEM]: Admin Panel successfully Loaded created by Muhammad Bilal.");
- return 1;
- }
- CMD:dmenu(playerid, params[])
- {
- if(!IsPlayerAdmin(playerid))return SendClientMessage(playerid,0xFF641AFF,"SERVER: You need to be rcon admin to use this cmd.");
- 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");
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == ADMIN_PANEL && response)
- {
- foreach(Player,i)
- {
- switch(listitem)
- {
- case 0: TogglePlayerControllable(i, false),GameTextForPlayer(i,"~w~All Players Are Freezed By ~r~Admin",3000,1); // Freeze the player
- case 1: TogglePlayerControllable(i, true),GameTextForPlayer(i,"~w~All Players Are Un-Freezed By ~r~Admin",3000,1); // unFreeze the player
- case 2: SetPlayerArmour(i, 100.0),GameTextForPlayer(i,"~r~Admin ~w~ Give all Player Armour",3000,1);
- case 3: SetPlayerHealth(i, 100),GameTextForPlayer(i,"~r~Admin Set All Health to 100 given",3000,1);
- case 4: SpawnPlayer(i),GameTextForPlayer(i,"~w~All Player Spawned by Admin",3000,1);
- case 5: SetPlayerTime(i,7,0),GameTextForPlayer(i,"~r~ Admin ~w~ Set all Time to Morning",3000,1); //morning
- case 6: SetPlayerTime(i,12,0),GameTextForPlayer(i,"~r~ Admin ~w~ Set all Time to Noon ",3000,1); //noon
- case 7: SetPlayerTime(i,0,0),GameTextForPlayer(i,"~r~ Admin ~w~ Set all Time to Mid Night ",3000,1); //midnight
- case 8: GivePlayerWeapon(i, 35, 10),GameTextForPlayer(i,"~w~Rocket Lanchers ~r~given",3000,1);
- case 9: GivePlayerWeapon(i,9, 1),GameTextForPlayer(i,"~r~Admin ~w~ Give all Player Chainsaw ",3000,1);
- case 10:GivePlayerWeapon(i,31, 150),GameTextForPlayer(i,"~r~Admin ~w~ Give all Player M4 ",3000,1);
- case 11:GivePlayerWeapon(i,16, 10),GameTextForPlayer(i,"~r~Admin ~w~ Give all Player 10 Gernades ",3000,1);
- case 12:GivePlayerWeapon(i,26, 100),GameTextForPlayer(i,"~r~Admin ~w~ Give all Player Sawnoff Shotgun",3000,1);
- case 13:ResetPlayerWeapons(i),GameTextForPlayer(i,"~w~All Players Are Disarm By ~r~Admin",3000,1);
- case 14:GameTextForPlayer(i,"~r~Admin Clear All Player Chat",3000,1),SendClientMessageToAll(-1,"");
- 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);
- case 16:GivePlayerWeapon(i,46,10), GameTextForPlayer(i,"~b~Parachute given to All Player By ~r~Admin",3000,1);
- 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);
- 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);
- 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);
- case 20:GameTextForPlayer(i,"~b~Beer Given to All Player by ~r~Admin",3000,1),SetPlayerSpecialAction(i,SPECIAL_ACTION_DRINK_BEER);
- 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
- case 22:GameTextForPlayer(i,"~b~Dance stop by Admin",3000,1),ApplyAnimation(i, "CARRY", "crry_prtial", 2.0, 0, 0, 0, 0, 0);
- }
- }
- }
- return 0;
- }
Add Comment
Please, Sign In to add comment