Raised This Month: $ Target: $400
 0% 

Only One Weapon


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Admin Commands       
Brreaker
Senior Member
Join Date: Oct 2009
Location: Constanta, Romania
Old 03-12-2010 , 14:34   Only One Weapon
Reply With Quote #1

Description:
This plugins forces all players to use the same weapons.

Commands:
amx_only <weapon> [weapon]
The weapons are:
Code:
awp
ak47
p228
scout
hegrenade
xm1014
mac10
aug
elite
fiveseven
ump45
sg550
galil
famas
usp
glock18
mp5navy
m249
m3
m4a1
tmp
g3sg1
deagle
sg552
p90
Example:
amx_only m4a1 will force all players to use M4A1.
amx_only m4a1 deagle will force all players to use M4A1 and Deagle.
amx_only m4a1 ak47 will force all players to use M4A1 and AK47

Changelog:
Code:
1.0 - First release
1.1 - Blocked Buy
1.2 - Added secondary slot too
Attached Files
File Type: sma Get Plugin or Get Source (onlyone.sma - 855 views - 2.9 KB)

Last edited by Brreaker; 03-12-2010 at 15:54.
Brreaker is offline
Send a message via MSN to Brreaker Send a message via Yahoo to Brreaker
FuZ!on
Senior Member
Join Date: Aug 2007
Old 03-12-2010 , 14:38   Re: Only One Weapon
Reply With Quote #2

Does this give them the weapon on spawn or do you have to buy the weapon when all others are restricted?
FuZ!on is offline
Brreaker
Senior Member
Join Date: Oct 2009
Location: Constanta, Romania
Old 03-12-2010 , 14:42   Re: Only One Weapon
Reply With Quote #3

Gives em the weapon, after stripping all their weapons...
Brreaker is offline
Send a message via MSN to Brreaker Send a message via Yahoo to Brreaker
unnyquee
Senior Member
Join Date: Jun 2009
Location: Constanta, Romania
Old 03-12-2010 , 14:45   Re: Only One Weapon
Reply With Quote #4

Actually, Brreaker meant to say that, when an admin types that command in console, everybody will have all their weapons stripped, and receive the weapon from the command, in that moment, not on spawn.
__________________
unnyquee is offline
fR4gn0tiX!
Senior Member
Join Date: Nov 2009
Location: Georgia, Tbilisi
Old 03-12-2010 , 15:06   Re: Only One Weapon
Reply With Quote #5

What if they buy another weapon? or pick up from ground
__________________
fR4gn0tiX! is offline
Send a message via Skype™ to fR4gn0tiX!
Brreaker
Senior Member
Join Date: Oct 2009
Location: Constanta, Romania
Old 03-12-2010 , 15:12   Re: Only One Weapon
Reply With Quote #6

Well I blocked buy, but I can't block pickup...I tried registering a pickup event, but when you give them the weapon, the plugin sees it like a pickup, so it drops it...If anybody can help....

Last edited by Brreaker; 03-12-2010 at 15:54.
Brreaker is offline
Send a message via MSN to Brreaker Send a message via Yahoo to Brreaker
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 03-12-2010 , 16:20   Re: Only One Weapon
Reply With Quote #7

Register Ham_AddPlayerItem pre and if the amx_only mode is on then HAM_SUPERCEDE, else HAM_IGNORED.
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ is offline
ditmesteam
Senior Member
Join Date: Oct 2009
Old 03-17-2010 , 12:59   Re: Only One Weapon
Reply With Quote #8

- what happen if players do not have enough money to buy ma41 (for example)?
- You should make plugin on/off. When set off, players can play in normal!
ditmesteam is offline
grimvh2
Veteran Member
Join Date: Nov 2007
Location: Fishdot Nation
Old 03-17-2010 , 13:02   Re: Only One Weapon
Reply With Quote #9

Quote:
Originally Posted by ditmesteam View Post
- what happen if players do not have enough money to buy ma41 (for example)?
- You should make plugin on/off. When set off, players can play in normal!
Players receive the gun, they don't have to buy it at all.
And I guess it the cmd only takes 1 round.
__________________
I am out of order!
grimvh2 is offline
Brreaker
Senior Member
Join Date: Oct 2009
Location: Constanta, Romania
Old 03-17-2010 , 14:14   Re: Only One Weapon
Reply With Quote #10

Yes you are right, the cmd takes only from the moment the admin used it, until the end of the round...At the next round, the players who survived will have the weapon, those who died...
Brreaker is offline
Send a message via MSN to Brreaker Send a message via Yahoo to Brreaker
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 07:16.


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