Raised This Month: $ Target: $400
 0% 

[REQ] Flashlight for 1 team only


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
smitten
Junior Member
Join Date: Dec 2011
Old 12-07-2011 , 16:39   [REQ] Flashlight for 1 team only
Reply With Quote #1

Hi there, I am looking a plugin for being able to enable/disable the flashlight for one team only i.e ct's enabled, t's disabled, and vice versa if possible.I am hoping that this kind of plugin would be possible.
Thank you all in advance.
p.s This is for cs 1.6
smitten is offline
bibu
Veteran Member
Join Date: Sep 2010
Old 12-08-2011 , 03:57   Re: [REQ] Flashlight for 1 team only
Reply With Quote #2

I will do that and repost later.

EDIT: Here you go. There are two cvars:

amx_flashlight_t
amx_flashlight_ct

Setting them to 0, blocks the flashlight for that team.
Attached Files
File Type: sma Get Plugin or Get Source (flashlight_block.sma - 758 views - 958 Bytes)
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.

Last edited by bibu; 12-09-2011 at 04:48.
bibu is offline
smitten
Junior Member
Join Date: Dec 2011
Old 12-09-2011 , 02:13   Re: [REQ] Flashlight for 1 team only
Reply With Quote #3

Thank you very much.
Will test after work today.

EDIT. Apologies but plugin cvars dont exist
any chance of editing the plugin

Last edited by smitten; 12-09-2011 at 16:21.
smitten is offline
smitten
Junior Member
Join Date: Dec 2011
Old 12-09-2011 , 17:13   Re: [REQ] Flashlight for 1 team only
Reply With Quote #4

sorry to bump but kinda need this.
tried to attempt myself but im newbie with coding still.
smitten is offline
bibu
Veteran Member
Join Date: Sep 2010
Old 12-09-2011 , 17:29   Re: [REQ] Flashlight for 1 team only
Reply With Quote #5

It works how it should. Just set the cvars via console or in amxx.cfg.
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu 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 20:55.


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