AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   General (https://forums.alliedmods.net/forumdisplay.php?f=58)
-   -   Command to remove specific weapon from a player? (https://forums.alliedmods.net/showthread.php?t=303558)

Obyboby 12-12-2017 09:12

Command to remove specific weapon from a player?
 
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.

RedSword 12-12-2017 23:25

Re: Command to remove specific weapon from a player?
 
https://forums.alliedmods.net/showthread.php?p=2279381

sm_strip player1 1

hamilton5 12-13-2017 07:24

Re: Command to remove specific weapon from a player?
 
I don't think he means to link THIS thread.. haha

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

RedSword 12-13-2017 19:24

Re: Command to remove specific weapon from a player?
 
Quote:

Originally Posted by hamilton5 (Post 2565948)
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.

Obyboby 12-14-2017 14:52

Re: Command to remove specific weapon from a player?
 
Quote:

Originally Posted by RedSword (Post 2566086)
:$

Thank you; Fixed.

Quote:

Originally Posted by hamilton5 (Post 2565948)
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?

8guawong 12-14-2017 21:02

Re: Command to remove specific weapon from a player?
 
Quote:

Originally Posted by Obyboby (Post 2566232)
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

Obyboby 12-15-2017 07:11

Re: Command to remove specific weapon from a player?
 
Quote:

Originally Posted by 8guawong (Post 2566272)
use override

So I need to give a custom flag to that user, and restrict that flag from using such commands?

8guawong 12-15-2017 07:54

Re: Command to remove specific weapon from a player?
 
Quote:

Originally Posted by Obyboby (Post 2566332)
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?

Obyboby 12-15-2017 08:53

Re: Command to remove specific weapon from a player?
 
Quote:

Originally Posted by 8guawong (Post 2566336)
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 :nono:
So STEAM_XXXXXXXX shouldn't be able to use it.

8guawong 12-15-2017 09:33

Re: Command to remove specific weapon from a player?
 
Quote:

Originally Posted by Obyboby (Post 2566345)
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 :nono:
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


All times are GMT -4. The time now is 07:04.

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