AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Cant use diffrent weapons (https://forums.alliedmods.net/showthread.php?t=244241)

Alphad 07-15-2014 16:50

Cant use diffrent weapons
 
How can I do, lets say there is a duel only AK47, And if a player picks up a diffrent weapon he cant be able to use it. Thanks if someone could give a example.

fysiks 07-15-2014 17:12

Re: Cant use diffrent weapons
 
The simple method is to remove all spawned weapons that don't fit your criteria and remove all dropped weapons that also don't fit your criteria. You'll probably find several threads regarding how to do this. I think you might be able to hook the spawn of all the weapons that you don't want used and then supersede the spawn event.

Alphad 07-15-2014 18:08

Re: Cant use diffrent weapons
 
Quote:

Originally Posted by fysiks (Post 2168323)
The simple method is to remove all spawned weapons that don't fit your criteria and remove all dropped weapons that also don't fit your criteria. You'll probably find several threads regarding how to do this. I think you might be able to hook the spawn of all the weapons that you don't want used and then supersede the spawn event.

Yes, But i have seen on a few servers that you can pick up the weapon but not switch to it. or use it.
Because on the map there are few buttons that give you weapon as well.

HamletEagle 07-16-2014 04:40

Re: Cant use diffrent weapons
 
Quote:

Originally Posted by Alphad (Post 2168353)
Yes, But i have seen on a few servers that you can pick up the weapon but not switch to it. or use it.
Because on the map there are few buttons that give you weapon as well.

Use CurrentWeapon event and restrict the weapon to whatever you want if the criterias are met.


All times are GMT -4. The time now is 21:06.

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