Ulysses Stuff > Suggestions

!strip <player>

(1/4) > >>

MrPresident:
There have been plenty of times when simply stripping the weapons from an abusive player might solve some issues or whatever. I noticed how COnna had included a command to strip a player of all their weapons including their tool gun with SAT and I was wondering if this could be added to ULX. I think it is a needed addition to the best admin mod out there.

Please consider it.

Chironex:
Here is the command, put that in ulx/lua/ulx/fun.lua


--- Code: ---function ulx.cc_stripweapons( ply, command, argv, args )
if #argv < 1 then
ULib.tsay( ply, ulx.LOW_ARGS )
return
end

local targets, err = ULib.getUsers( argv[ 1 ], _, true, ply ) -- Enable keywords
if not targets then
ULib.tsay( ply, err )
return
end

for _, v in ipairs( targets ) do
ulx.logUserAct( ply, v, "#A stripped #T's weapons" )
v:StripWeapons()
end
end
ulx.concommand( "strip", ulx.cc_stripweapons, "<user(s)> - Strips user(s)'s weapons.", ULib.ACCESS_ADMIN, "!strip", _, ulx.ID_PLAYER_HELP )
--- End code ---

Megiddo:
Heh, don't you love how easy it is to add stuff to ULX? :D That whole code block was template except for one line.

Maybe we should work on making it even more module and robust. :)

Chironex:
Yes it's very easy to add things, for those who have a minimum of knowledge :)

MrPresident:
Thankyou very much for your help guys.. I appreciate it a lot.

Navigation

[0] Message Index

[#] Next page

Go to full version