Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (cmd == "clear")
- {
- if (player.Admin)
- {
- if (args.Length != 0)
- {
- Player player3 = Server.GetServer().FindPlayer(string.Join(" ", args));
- if (!player3.Equals(null))
- {
- player3.Inventory.Clear();
- player.InventoryNotice("Cleared Inventory of " + player3.Name);
- }
- else
- {
- player.MessageFrom("InventoryManager", "Sorry! Couldn't find this player!");
- }
- }
- else
- {
- player.MessageFrom("InventoryManager", "Sorry! Couldn't find this player!");
- }
- }
- else
- {
- player.MessageFrom("InventoryManager", "You don't have permission to use this command.");
- }
- }`if (cmd == "clear")
- {
- if (player.Admin)
- {
- if (args.Length != 0)
- {
- Player player3 = Server.GetServer().FindPlayer(string.Join(" ", args));
- if (!player3.Equals(null))
- {
- player3.Inventory.Clear();
- player.InventoryNotice("Cleared Inventory of " + player3.Name);
- }
- else
- {
- player.MessageFrom("InventoryManager", "Sorry! Couldn't find this player!");
- }
- }
- else
- {
- player.MessageFrom("InventoryManager", "Sorry! Couldn't find this player!");
- }
- }
- else
- {
- player.MessageFrom("InventoryManager", "You don't have permission to use this command.");
- }
- }if (cmd == "clear")
- {
- if (player.Admin)
- {
- if (args.Length != 0)
- {
- Player player3 = Server.GetServer().FindPlayer(string.Join(" ", args));
- if (!player3.Equals(null))
- {
- player3.Inventory.Clear();
- player.InventoryNotice("Cleared Inventory of " + player3.Name);
- }
- else
- {
- player.MessageFrom("InventoryManager", "Sorry! Couldn't find this player!");
- }
- }
- else
- {
- player.MessageFrom("InventoryManager", "Sorry! Couldn't find this player!");
- }
- }
- else
- {
- player.MessageFrom("InventoryManager", "You don't have permission to use this command.");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement