Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Undroppable weapons
- //Two options, both will work slightly differently; use one only
- //Both solutions only affect non-superadmins; superadmins can still drop weapons normally
- //Use this if you want weapons to be completely unremovable from inventory...
- package NoDropWeapons
- {
- function serverCmdDropTool(%client,%slot)
- {
- if(%client.isSuperAdmin)
- Parent::serverCmdDropTool(%client,%slot);
- }
- };
- ActivatePackage(NoDropWeapons);
- //OR use this one if you still want people to be able to clear weapons from their inventory;
- //the weapon will just be completely deleted instead.
- package NoDropWeapons
- {
- function serverCmdDropTool(%client,%slot)
- {
- if(%client.isSuperAdmin)
- Parent::serverCmdDropTool(%client,%slot);
- else
- {
- %client.player.tool[%slot] = 0;
- messageClient(%client,'MsgItemPickup','',%slot,0,0);
- %client.player.unMountImage(0);
- }
- }
- };
- ActivatePackage(NoDropWeapons);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement