Raised This Month: $60 Target: $400

NoSil (hides silencer on models)

Post New Thread Reply   
Thread Tools Display Modes
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 02-26-2012 , 06:20   Re: NoSil (hides silencer on models)
Reply With Quote #31

Originally Posted by Costin83 View Post
I think I made a little improvement to the code, though I don't know how to script... (when player spawns he would had the default silenced usp model until he switched weapons) now I've added a second check on item deploy so when the player spawns/drops his primary weapon it would update the model accordingly.

Also I've added a shield unsilenced usp model because we all know that when you have a shield the usp can't be silenced, and I believe this feature it's a "must" for this plugin.
Your code is wrong, you are checking read_data(2) from functions that are not events callbacks.
I've made it for you, cache the allocated models values so they are not allocated again and again (allocated string stays between map so if we can limit the increase to only 1 per map i think it is better )

I hope plugin author doesn't mind if i post this, just PM me if you want i remove it.

I haven't tested the plugin, let me know if models are not set correctly and in which situations.
Attached Files
File Type: sma Get Plugin or Get Source (nosil.sma - 728 views - 4.6 KB)
- tired and retired -

Last edited by ConnorMcLeod; 02-26-2012 at 06:25.
ConnorMcLeod is offline
Senior Member
Join Date: Jul 2008
Location: Romania
Old 02-26-2012 , 09:56   Re: NoSil (hides silencer on models)
Reply With Quote #32

Thx for the rewrite. I've been silently waited for someone to do just that
Now I can call this plugin being complete
Originally Posted by Hawk552
Actually, if your style pisses me off enough, I'll generally go through your code and find some reason to unapprove it or at least hold it back.
Costin83 is offline
Send a message via Yahoo to Costin83
New Member
Join Date: Jun 2020
Old 06-10-2020 , 07:10   Re: NoSil (hides silencer on models)
Reply With Quote #33

i got models for cscz for the plugin users
Attached Files
File Type: zip models.zip (288.3 KB, 9 views)
Claude360 is offline

Thread Tools
Display Modes

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 14:05.

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