[MadCommands] Clearinv

You can easily do /cmd install setinventory then /cmd add clearinv asop /setinventory 0

But I like this way better because this way it’s just 1 command

/cmd create clearinv §r§aClear your inventory

cmd add clearinv %item% = \"0\"
cmd add clearinv carry %p% %item%
cmd add clearinv hold %p% %item%
cmd add clearinv message %p% §4[§eServerName§4] §7Your inventory has been cleared!
cmd add clearinv exit

Hello Fello Earthlings 😁 Have a wonderful day

I did
/cmd create clear
/cmd add clear let %option% = %args%[2]
/cmd add clear if varset(%option%) then goto 5
/cmd add clear message %p% Unknown Option!
/cmd add clear exit
/cmd add clear if %option% = \"chat\" then goto 10
/cmd add clear if %option% = \"inv\" then goto 8
/cmd add clear exit
/cmd add clear /setinventory 0
/cmd add clear exit
/cmd add clear message %p% (or playersonline() §§ repeat 200 times ;)

but still well done

Staff on the Jg-Server, and the sun
-lid of The JG-Network community
-jgserver.factions.pe:37050
-b31074.leet.cc:31074
(The sun coming coon)

Oh ya yust came in my mind
/cmd add clearinv let %player% = %args%[1]
/cmd add clearinv if varset(%player%) then goto 8
/cmd add clearinv %item% = \"0\"
/cmd add clearinv carry %p% %item%
/cmd add clearinv hold %p% %item%
/cmd add clearinv message %p% §4[§eServerName§4] §7Your inventory has been cleared!
/cmd add clearinv exit
/cmd add clearinv let %op% = playerstatus(%p%)
/cmd add clearinv if %op%[\"op\"] = 0 then message %p% §cYou have no permission to use this command!
/cmd add clearinv if %op%[\"op\"] = 0 then exit
/cmd add clearinv %item% = \"0\"
/cmd add clearinv carry %player% %item%
/cmd add clearinv hold %player% %item%
/cmd add clearinv message %player% §4[§eServerName§4] §7Your inventory has been cleared!
/cmd add clearinv message %p% §4[§eServerName§4] §7You have cleared §f%player% inventory!
/cmd add clearinv exit

This will clear a players inventory that only op users can use!

Staff on the Jg-Server, and the sun
-lid of The JG-Network community
-jgserver.factions.pe:37050
-b31074.leet.cc:31074
(The sun coming coon)

@theequaq
Nice! I want my players to freely use /clearinv to remove unwanted items. So I don’t really need the op part and it’s safe they can’t clear other peoples inventory.

Hello Fello Earthlings 😁 Have a wonderful day

@jmplayzgamez ya its true but its easy if you can clear others inventory

Staff on the Jg-Server, and the sun
-lid of The JG-Network community
-jgserver.factions.pe:37050
-b31074.leet.cc:31074
(The sun coming coon)

@jmplayzgamez You only have to use carry.
You don’t have to use hold

twitter: @datalion_
Mail: [email protected]



Any problems?
Feel free to contact us on: http://support.leet.cc

@theequaq Instead of checking if the player is op, I suggest you control access to the command via permissions.

If you like trains or mazes, make sure to check out TrainMazeLand!
If my post has helped you, feel free to donate some credits to trainmazeland.leet.cc ;-)

@datalion
oh xD
I used hold for a other command I made

Hello Fello Earthlings 😁 Have a wonderful day

It’s a whole lot easier to just do

/cmd install setinventory
/cmd create clearinv
/cmd add clearinv /setinventory %p% 0

Making no sense since 2002™

IGN/Gamertag: JaxThePerson
Discord: JaxThePerson#8819

I own a server named OzoneHaven! Join it at ozonehaven.us.to: 39177.
Vote: http://bit.do/ozonevote
Forum: http://bit.do/ozoneforum
Discord: https://discord.gg/Une7Xrs

@jaxtheperson yeh I said that

Hello Fello Earthlings 😁 Have a wonderful day

@madhon ya but this is that the admin cathdelete somewannes inventory and uder players not

Staff on the Jg-Server, and the sun
-lid of The JG-Network community
-jgserver.factions.pe:37050
-b31074.leet.cc:31074
(The sun coming coon)

Log in to reply

Looks like your connection to LEET Forums was lost, please wait while we try to reconnect.