Raised This Month: $7 Target: $400
 1% 

MP_FlashLight (Teams Based) [ENGINE Module]


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Server Management       
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 02-12-2014 , 20:46   MP_FlashLight (Teams Based) [ENGINE Module]
Reply With Quote #1

Hi, i have created a simple plugin as requested by http://forums.alliedmods.net/showthread.php?t=235341

This will lock to use FlashLight (Impulse 100) command based on Terrrorists or Counter-Terrorists Team.

.Cvars

Code:
// ANY (DEFAULT) = Flash Light enabled to both teams
// TR = To Terrorists Only
// CT = To Counter-Terrorists Only

mp_team_flashlight "ANY"
.Usage

This plugin requires 2 small things in Amx Mod X Server:

- Engine Module
- mp_flashlight cvar active.



Attached Files
File Type: sma Get Plugin or Get Source (mp_teams_flashlight.sma - 836 views - 1.1 KB)
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
OnePL
BANNED
Join Date: May 2012
Location: GB
Old 02-13-2014 , 00:23   Re: MP_FlashLight (Teams Based) [ENGINE Module]
Reply With Quote #2

Spoiler

Last edited by ConnorMcLeod; 02-13-2014 at 01:30.
OnePL is offline
Send a message via ICQ to OnePL Send a message via AIM to OnePL Send a message via Yahoo to OnePL Send a message via Skype™ to OnePL
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 02-13-2014 , 01:28   Re: MP_FlashLight (Teams Based) [ENGINE Module]
Reply With Quote #3

OnePL, i've removed your fakemeta code, fakemeta is not convenient for working on impulse, engine has dedicated tools for it, it is not efficient to make it with fakemeta and it is a little stupid to try ;)
If you want to put your code back, i won't delete it anymore, because you have right to do it, it is just a bad example to show, and if you are smart, you won't want such a code to be shown in one of your posts.
__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 02-13-2014 at 01:29.
ConnorMcLeod is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 09-25-2015 , 09:58   Re: MP_FlashLight (Teams Based) [ENGINE Module]
Reply With Quote #4

Quote:
Originally Posted by "Rules
Do not post plugins "just for the sake of it". eg. A fulfilled request may have been useful for one or a few people, but that does not necessarily mean that it has a place in the Approved section. Please take the time to expand your knowledge and produce some quality work.
Unapproved.
__________________
HamletEagle is offline
Reply


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 06:22.


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