Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Created by: Msvlad2000
- //You can delete the credits :)
- #define dialog 8132
- #define FILTERSCRIPT
- #define COLOR_YELLOW 0xFFFF00AA
- #define COLOR_WHITE 0xFFFFFFFF
- #define IsPlayerNotInVehicle(%0) (!IsPlayerInAnyVehicle(%0))
- #include <ladmin>
- #include <a_samp>
- #if defined FILTERSCRIPT
- ////////////////////////////////////////////////////////////////////////////////
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp("/M", cmdtext, true, 10) == 0)
- if(IsPlayerLuxAdmin(playerid))
- {
- ShowPlayerDialog(playerid, dialog, DIALOG_STYLE_LIST, "MCommand - CP", "- Admin Weapons -\n- Admin Heal -\n- Admin Armour -\n- Spawn All -", "Spawn", "Cancel");
- return 1;
- }
- else SendClientMessage(playerid, COLOR_WHITE, "ERROR: You not is Administrator");
- return 0;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == dialog)
- {
- if(response)
- {
- if(listitem == 0)
- {
- GivePlayerWeapon(playerid, 38, 12000);
- GivePlayerWeapon(playerid, 27, 12000);
- GivePlayerWeapon(playerid, 31, 12000);
- GivePlayerWeapon(playerid, 24, 12000);
- GivePlayerWeapon(playerid, 18, 12000);
- GivePlayerWeapon(playerid, 5, 12000);
- GivePlayerWeapon(playerid, 28, 12000);
- PlayerPlaySound(playerid, 1057, 0.0, 0.0, 10.0);
- GameTextForPlayer(playerid, "~r~Spawned!", 3000, 3);
- }
- if(listitem == 1)
- {
- SetPlayerHealth(playerid, 160);
- PlayerPlaySound(playerid, 1057, 0.0, 0.0, 10.0);
- GameTextForPlayer(playerid, "~r~spawned!", 1000, 3);
- }
- if(listitem == 2)
- {
- SetPlayerArmour(playerid, 100.0);
- PlayerPlaySound(playerid, 1057, 0.0, 0.0, 10.0);
- GameTextForPlayer(playerid, "~r~spawned!", 1000, 3);
- }
- if(listitem == 3)
- {
- GivePlayerWeapon(playerid, 38, 12000);
- GivePlayerWeapon(playerid, 27, 12000);
- GivePlayerWeapon(playerid, 31, 12000);
- GivePlayerWeapon(playerid, 24, 12000);
- GivePlayerWeapon(playerid, 18, 12000);
- GivePlayerWeapon(playerid, 5, 12000);
- GivePlayerWeapon(playerid, 28, 12000);
- SetPlayerHealth(playerid, 160);
- SetPlayerArmour(playerid, 100.0);
- PlayerPlaySound(playerid, 1057, 0.0, 0.0, 10.0);
- GameTextForPlayer(playerid, "~r~spawned all!", 1000, 3);
- }
- }
- }
- return 0;
- }
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement