Raised This Month: $12 Target: $400
 3% 

Command to remove specific weapon from a player?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Obyboby
Veteran Member
Join Date: Sep 2013
Old 12-12-2017 , 09:12   Command to remove specific weapon from a player?
Reply With Quote #1

Is this possible?
Like sm_remove <player> <item>

Example: sm_remove player1 knife
sm_remove player1 rifle

A specific weapon or group of weapons to make it even easier.
__________________
Obyboby is offline
RedSword
SourceMod Plugin Approver
Join Date: Mar 2006
Location: Quebec, Canada
Old 12-12-2017 , 23:25   Re: Command to remove specific weapon from a player?
Reply With Quote #2

https://forums.alliedmods.net/showthread.php?p=2279381

sm_strip player1 1
__________________
My plugins :
Red Maze
Afk Bomb
RAWR (per player/rounds Awp Restrict.)
Kill Assist
Be Medic

You can also Donate if you appreciate my work

Last edited by RedSword; 12-13-2017 at 19:24.
RedSword is offline
hamilton5
Veteran Member
Join Date: Oct 2012
Location: USA
Old 12-13-2017 , 07:24   Re: Command to remove specific weapon from a player?
Reply With Quote #3

I don't think he means to link THIS thread.. haha

try this thread instead: https://forums.alliedmods.net/showthread.php?p=2279381
hamilton5 is offline
RedSword
SourceMod Plugin Approver
Join Date: Mar 2006
Location: Quebec, Canada
Old 12-13-2017 , 19:24   Re: Command to remove specific weapon from a player?
Reply With Quote #4

Quote:
Originally Posted by hamilton5 View Post
I don't think he means to link THIS thread.. haha

try this thread instead: https://forums.alliedmods.net/showthread.php?p=2279381
:$

Thank you; Fixed.
__________________
My plugins :
Red Maze
Afk Bomb
RAWR (per player/rounds Awp Restrict.)
Kill Assist
Be Medic

You can also Donate if you appreciate my work

Last edited by RedSword; 12-13-2017 at 19:24.
RedSword is offline
Obyboby
Veteran Member
Join Date: Sep 2013
Old 12-14-2017 , 14:52   Re: Command to remove specific weapon from a player?
Reply With Quote #5

Quote:
Originally Posted by RedSword View Post
:$

Thank you; Fixed.
Quote:
Originally Posted by hamilton5 View Post
I don't think he means to link THIS thread.. haha

try this thread instead: https://forums.alliedmods.net/showthread.php?p=2279381

Thanks guys, that's perfect.

Now I also need a plugin to restrict a specific command to a specific user. Anything already coded?
__________________
Obyboby is offline
8guawong
AlliedModders Donor
Join Date: Dec 2013
Location: BlackMarke7
Old 12-14-2017 , 21:02   Re: Command to remove specific weapon from a player?
Reply With Quote #6

Quote:
Originally Posted by Obyboby View Post
Thanks guys, that's perfect.

Now I also need a plugin to restrict a specific command to a specific user. Anything already coded?
use override
__________________
8guawong is offline
Obyboby
Veteran Member
Join Date: Sep 2013
Old 12-15-2017 , 07:11   Re: Command to remove specific weapon from a player?
Reply With Quote #7

Quote:
Originally Posted by 8guawong View Post
use override
So I need to give a custom flag to that user, and restrict that flag from using such commands?
__________________
Obyboby is offline
8guawong
AlliedModders Donor
Join Date: Dec 2013
Location: BlackMarke7
Old 12-15-2017 , 07:54   Re: Command to remove specific weapon from a player?
Reply With Quote #8

Quote:
Originally Posted by Obyboby View Post
So I need to give a custom flag to that user, and restrict that flag from using such commands?
umm... so you want to allow that specific user to use the command or you don't want that user to be able to use the command?
__________________
8guawong is offline
Obyboby
Veteran Member
Join Date: Sep 2013
Old 12-15-2017 , 08:53   Re: Command to remove specific weapon from a player?
Reply With Quote #9

Quote:
Originally Posted by 8guawong View Post
umm... so you want to allow that specific user to use the command or you don't want that user to be able to use the command?
I don't want him to.

!takeknife is available to everyone regardless of their flag.
This specific user must not be allowed to use it
So STEAM_XXXXXXXX shouldn't be able to use it.
__________________
Obyboby is offline
8guawong
AlliedModders Donor
Join Date: Dec 2013
Location: BlackMarke7
Old 12-15-2017 , 09:33   Re: Command to remove specific weapon from a player?
Reply With Quote #10

Quote:
Originally Posted by Obyboby View Post
I don't want him to.

!takeknife is available to everyone regardless of their flag.
This specific user must not be allowed to use it
So STEAM_XXXXXXXX shouldn't be able to use it.
OK... So what you said here was completely different

https://forums.alliedmods.net/showpo...32&postcount=5
__________________

Last edited by 8guawong; 12-15-2017 at 09:33.
8guawong is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:09.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode