Author Topic: Making a player not being able to use weapons?  (Read 558 times)

How would i go about either making a player type or a mod that would not allow the player to use any of the objects in his/her inventory? Any help would be appreciated.

Package serverCmdUseTool(%client,%slot).

And by-the-by, you seem to be creating quite a few coding help topics. Actually try to do something before posting for help.

So it is possible and would you care to elaborate on your answer at all.

Well, I'm a bit new to scripting so I don't know yet.

Semiticklar

Well, I'm a bit new to scripting so I don't know yet.

Semiticklar
Then why the hell post?
So it is possible and would you care to elaborate on your answer at all.
Yes it is possible. Package the serverCmdUseTool(%client,%slot) function which is when a player attempts to equip a tool. Make it check for a variable on the client says they aren't allowed to use tools (%client.noTools or something) and if so return, otherwise parent::serverCmdUseTool(%client,%slot).