Raised This Month: $51 Target: $400
 12% 

Buy Flashlight


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Server Management       
Styles
Veteran Member
Join Date: Jul 2004
Location: California
Old 06-16-2007 , 21:43   Buy Flashlight
Reply With Quote #1

This makes people buy their flashlight each round.

Cvars:
mp_flashlightCost (Defaul: 500)

Change Log:
1.0 - Initial Release, Changed the time when it resets it.
1.1 - Added Multi-Lingual - Fixed some spelling errors - Made it so when they die they lose the light.

I don't know if 1.1 will work with ML. I am new to it. Please test.
Ill keep the old version up just in case.

Update: I saw that stupid amxx stuido crap in the file for the lang's forgot sorry. Updated with a fix.

Also if somebody would like to translate, hit me up on aim or pm me.


Thanks,
Styles
Attached Files
File Type: sma Get Plugin or Get Source (buyFlashLight.sma - 2554 views - 1.4 KB)
File Type: sma Get Plugin or Get Source (buyFlashLight1.1Beta.sma - 1941 views - 1.4 KB)
File Type: txt buyFlashlight.txt (273 Bytes, 1048 views)

Last edited by Styles; 06-21-2007 at 14:45.
Styles is offline
Send a message via AIM to Styles
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 06-17-2007 , 00:42   Re: Buy Flashlight
Reply With Quote #2

ResetHUD doesn't just get called when a client is spawned, it is called multiple times during the round. Look at VEN's tutorial on how to use it properly
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
Styles
Veteran Member
Join Date: Jul 2004
Location: California
Old 06-17-2007 , 00:52   Re: Buy Flashlight
Reply With Quote #3

That is a VERY helpful tutorial I had no idea he ever posted that. Wow. Thanks alot
Styles is offline
Send a message via AIM to Styles
allenwr
Veteran Member
Join Date: Jan 2006
Location: The place where the karm
Old 06-17-2007 , 03:02   Re: Buy Flashlight
Reply With Quote #4

Can I recommend that you have the option they own the flashlight until they die, kinda like a nade or gun.

One more thing,

Code:
new bool:hasflashlight[33]

use that for true false statements

good idea btw
__________________
Don't ever place an order with Vee Servers. This is why.
allenwr is offline
Send a message via ICQ to allenwr Send a message via Yahoo to allenwr
Toster v2.1
Senior Member
Join Date: Oct 2006
Location: Latvia, Riga
Old 06-17-2007 , 07:12   Re: Buy Flashlight
Reply With Quote #5

It should be

bool:hasflashlight [32]

0-31
__________________
I am 52% addicted to Counterstrike. What about you?

Last edited by Toster v2.1; 06-17-2007 at 07:15.
Toster v2.1 is offline
Send a message via Skype™ to Toster v2.1
Old 06-17-2007, 07:12
Toster v2.1
This message has been deleted by Toster v2.1. Reason: Sorry made a double post...
allenwr
Veteran Member
Join Date: Jan 2006
Location: The place where the karm
Old 06-17-2007 , 11:18   Re: Buy Flashlight
Reply With Quote #6

Hmm, even the advanced scripters on this site do [33] 1-32, So, I am just going to stay with 33 since that is what I am used to seeing
__________________
Don't ever place an order with Vee Servers. This is why.
allenwr is offline
Send a message via ICQ to allenwr Send a message via Yahoo to allenwr
Lord_Destros
Veteran Member
Join Date: Jul 2004
Location: With stupid.
Old 06-17-2007 , 12:51   Re: Buy Flashlight
Reply With Quote #7

Oh noes! Your wasting 1 cell!

Yeah, I've always wondered why people tend to add that extra cell on the end (or beginning).........
__________________
Quote:
Originally Posted by Twilight Suzuka
Don't worry m'lord. The turtles day will come.
Lord_Destros is offline
Send a message via AIM to Lord_Destros
Styles
Veteran Member
Join Date: Jul 2004
Location: California
Old 06-17-2007 , 13:53   Re: Buy Flashlight
Reply With Quote #8

I actually didn't mean to. Lol I have been really out of it . Thanks for catching that.
Styles is offline
Send a message via AIM to Styles
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 06-17-2007 , 14:14   Re: Buy Flashlight
Reply With Quote #9

Quote:
Originally Posted by Lord_Destros View Post
Oh noes! Your wasting 1 cell!

Yeah, I've always wondered why people tend to add that extra cell on the end (or beginning).........
We add it for some things that not only players can do. Also, so we don't want to do -1 every single time we use the array.
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
kmal2t
BANNED
Join Date: Apr 2006
Old 06-17-2007 , 14:57   Re: Buy Flashlight
Reply With Quote #10

When would flashlight be that valuable that you'd need to buy one and for 500? Is any map really that dark and hl1 flashlight is worthless for the most part anyway. You might as well get the nightvision one. WEll I guess it has some use somewhere maybe.

This is really minor, but I would change this:
Code:
"[Flash Light] You don't have enought for the flashlight."
"[Flash Light] You already have the flash light."
"[Flash Light] You have bought the flashlight."
To this:
Code:
"[Flashlight] You don't have enough money for a flashlight."
"[Flashlight] You already have a flashlight!"
"[Flashlight] You bought a flashlight."
kmal2t 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 23:01.


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