Raised This Month: $ Target: $400
 0% 

[CS:S] Sniper Restrict


Post New Thread Reply   
 
Thread Tools Display Modes
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 10-30-2011 , 16:32   Re: [CS:S] Sniper Restrict
Reply With Quote #11

give this version a shot and if it works, I'll update the OP with the fixed version.

Basically, I removed the need for gamedata file - using CS_WeaponDrop native with blockhook set to true in case CSSDM uses CS_OnWeaponDrop to hook all weapon drops or something.

You need to download the SMX file or compile the SP file yourself due to the web compiler inablility to compile with the includes I have
Attached Files
File Type: sp Get Plugin or Get Source (SniperRestrict.sp - 225 views - 17.8 KB)
File Type: smx SniperRestrict.smx (12.4 KB, 222 views)
TnTSCS is offline
krzynek1
Member
Join Date: Jan 2009
Old 10-30-2011 , 16:41   Re: [CS:S] Sniper Restrict
Reply With Quote #12

wow, you are fast

but some error pops out when loading sniper restrict, I used your .smx file

Code:
L 10/30/2011 - 21:38:48: [SM] Unable to load plugin "SniperRestrict.smx": Native "CS_DropWeapon" was not found
should I update SM to 1.4 ?

Last edited by krzynek1; 10-30-2011 at 16:42.
krzynek1 is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 10-30-2011 , 18:01   Re: [CS:S] Sniper Restrict
Reply With Quote #13

yes, sorry about that - that function was added in SM 1.4.0
TnTSCS is offline
krzynek1
Member
Join Date: Jan 2009
Old 10-31-2011 , 03:53   Re: [CS:S] Sniper Restrict
Reply With Quote #14

Hello, thank you for quick responses. Plugin loads correctly now on SM 1.4. When player reaches "sm_SniperRestrict_MaxSniperKills" plugin is removing sniper rifle and giving scout but only once, on next round player spawns with no primary weapon (there is notification about reaching the limit etc.), only secondary

Is this intended behavior ? In my opinion player should get "sm_SniperRestrict_SniperReplace" weapon everytime.
krzynek1 is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 10-31-2011 , 11:51   Re: [CS:S] Sniper Restrict
Reply With Quote #15

The way this plugin is intended when a player reaches their sniper limit, they get that sniper weapon stripped and are given the replacement weapon. If they drop that weapon or die, when they start the next round, they start as normal - they have to purchase their weapons.

It was not written to always give them the replacement weapon at the start of each round.
TnTSCS is offline
krzynek1
Member
Join Date: Jan 2009
Old 10-31-2011 , 15:29   Re: [CS:S] Sniper Restrict
Reply With Quote #16

oh, now I see the implications, but can you add "deathmatch" mode to your plugin ?
krzynek1 is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 10-31-2011 , 15:49   Re: [CS:S] Sniper Restrict
Reply With Quote #17

Quote:
Originally Posted by krzynek1 View Post
oh, now I see the implications, but can you add "deathmatch" mode to your plugin ?
give me the lay out of how you think it should work and I'll implement if I can As long as it won't break anything it currently does.
TnTSCS is offline
krzynek1
Member
Join Date: Jan 2009
Old 10-31-2011 , 15:52   Re: [CS:S] Sniper Restrict
Reply With Quote #18

of course
krzynek1 is offline
FreeFall
Junior Member
Join Date: Mar 2011
Old 11-08-2011 , 03:49   Re: [CS:S] Sniper Restrict
Reply With Quote #19

Update pls...
FreeFall is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 11-08-2011 , 08:56   Re: [CS:S] Sniper Restrict
Reply With Quote #20

Quote:
Originally Posted by FreeFall View Post
Update pls...
Update to what? Or are you saying it's not working after the last update?

On Post #11 I updated this plugin to not have to rely on the weapon_restrict.games.txt.. give it a shot and let me know.

Last edited by TnTSCS; 11-08-2011 at 09:00.
TnTSCS 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 16:44.


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