Raised This Month: $ Target: $400
 0% 

Cant use diffrent weapons


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Alphad
Senior Member
Join Date: Jun 2014
Old 07-15-2014 , 16:50   Cant use diffrent weapons
Reply With Quote #1

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.
Alphad is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-15-2014 , 17:12   Re: Cant use diffrent weapons
Reply With Quote #2

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.
__________________
fysiks is offline
Alphad
Senior Member
Join Date: Jun 2014
Old 07-15-2014 , 18:08   Re: Cant use diffrent weapons
Reply With Quote #3

Quote:
Originally Posted by fysiks View Post
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.
Alphad is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 07-16-2014 , 04:40   Re: Cant use diffrent weapons
Reply With Quote #4

Quote:
Originally Posted by Alphad View Post
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.
HamletEagle is offline
Reply



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 21:06.


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