Raised This Month: $32 Target: $400
 8% 

Weapon Preferences v1.3


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   General Purpose       
ezio_auditore
Senior Member
Join Date: May 2013
Old 11-08-2014 , 10:14   Weapon Preferences v1.3
Reply With Quote #1

Weapon Preferences
-ezio_auditore

Here is a simple plugin which lets user to prefer a set of weapons (Primary Weapon +
Secondary Weapon)and buy them anytime. Users can select their own preferred weapons or
let the plugin choose their weapons for them. The preferred weapons are those weapons which
are either chosen by the user in the menu or the weapons carried for maximum time by them.
Users can prefer a set a of weapons and buy them when they are in a buyzone. Keeping the original
sense of the game, this plugin gives users only those weapons which are allowed to the player's
team. For example, a CT player can prefer AK47 but cannot buy it(adjustible from the CVar after
version 1.2). The menu is shown on every spawn which the user can disable.

Client Commands:
Say /pref to open the preference menu

CVars:
weap_pref_allowall : Whether team restriction is disabled on purchase of prefered weapon | Default 0
--------------------------------------------------------------------------------------------

Changelog:
v1.0: Initial Release
-------------------------------------------------------------------------------------------------
v1.1: Minor Fixes.
-------------------------------------------------------------------------------------------------
v1.2: Now no team restriction on weapon purchase (CVar Controlled)
Added Autobuy Prefered Weapon Feature
Improved Messages
-------------------------------------------------------------------------------------------------
v1.3: New Menu
Attached Files
File Type: sma Get Plugin or Get Source (prefer.sma - 723 views - 17.8 KB)
__________________

Last edited by ezio_auditore; 11-11-2014 at 06:36.
ezio_auditore is offline
Send a message via Skype™ to ezio_auditore
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Location: Siiiiiiiiuu
Old 11-08-2014 , 11:54   Re: Weapon Preferences v1.1
Reply With Quote #2

In a quick view i saw one problem, your english xD
%s %s and %s Ares The Default Prefered Weapon.
Should be are, not ares
__________________
Jhob94 is offline
KaranMohadkar
Senior Member
Join Date: Oct 2012
Location: Reality !
Old 11-08-2014 , 14:03   Re: Weapon Preferences v1.1
Reply With Quote #3

i think this plugin can be improved and more features can be added ( cvars etc.. )

Like A custom menu system
like we get in the CSDM i think ( to buy the weapons ) ....

ct can buy t guns ... and vice versa ... ( cvar so we can enable/disable it )

at current only this much i can think about
__________________
KaranMohadkar is offline
Old 11-08-2014, 22:31
ezio_auditore
This message has been deleted by ezio_auditore. Reason: NO
ezio_auditore
Senior Member
Join Date: May 2013
Old 11-09-2014 , 00:11   Re: Weapon Preferences v1.2
Reply With Quote #4

Updated. See this.

Quote:
Originally Posted by ezio_auditore View Post
Changelog
__________________
ezio_auditore is offline
Send a message via Skype™ to ezio_auditore
Backstabnoob
Veteran Member
Join Date: Feb 2009
Location: Iwotadai Dorm
Old 11-09-2014 , 03:48   Re: Weapon Preferences v1.2
Reply With Quote #5

Code:
bind f1 "m4a1; ak47; deagle;"
__________________
Currently busy working on a very large scale anime database project.
Backstabnoob is offline
ezio_auditore
Senior Member
Join Date: May 2013
Old 11-09-2014 , 05:45   Re: Weapon Preferences v1.2
Reply With Quote #6

Quote:
Originally Posted by Backstabnoob View Post
Code:
bind f1 "m4a1; ak47; deagle;"
No doubt it could be used. But I don't want to change the default settings.
__________________
ezio_auditore is offline
Send a message via Skype™ to ezio_auditore
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 11-09-2014 , 06:11   Re: Weapon Preferences v1.2
Reply With Quote #7

Just binding your own alias doesn't change default settings, which is defined in a config file, and can be triggered with autobuy command if I don't say bullshit.

In CZ, there is also a VGUI menu allowing you to modify visually predefined packages.

Anyway this looks like redundant plugin which tries to reinvent the wheel.
__________________

Last edited by Arkshine; 11-09-2014 at 06:16.
Arkshine is offline
ezio_auditore
Senior Member
Join Date: May 2013
Old 11-09-2014 , 07:01   Re: Weapon Preferences v1.2
Reply With Quote #8

Quote:
Originally Posted by Arkshine View Post
Just binding your own alias doesn't change default settings, which is defined in a config file, and can be triggered with autobuy command if I don't say bullshit.
I did not know that.

Quote:
Originally Posted by Arkshine View Post
Anyway this looks like redundant plugin which tries to reinvent the wheel.
Redundant of which
__________________
ezio_auditore is offline
Send a message via Skype™ to ezio_auditore
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 11-09-2014 , 07:11   Re: Weapon Preferences v1.2
Reply With Quote #9

of game system which already handles that, using alias and autobuy/rebuy command. Also all is managed properly and in better way, whatever team, money, etc.
__________________

Last edited by Arkshine; 11-09-2014 at 07:14.
Arkshine is offline
ezio_auditore
Senior Member
Join Date: May 2013
Old 11-09-2014 , 07:16   Re: Weapon Preferences v1.2
Reply With Quote #10

Quote:
Originally Posted by Arkshine View Post
of game system which already handles that, using alias and autobuy/rebuy command. Also all is managed properly and in better way, whatever team, money, etc.
Alright. I agree with you sir. But the game system cannot give CTs an AK-47. As far as I know
__________________
ezio_auditore is offline
Send a message via Skype™ to ezio_auditore
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 23:49.


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