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

[TF2]Killstreak


Post New Thread Reply   
 
Thread Tools Display Modes
Dr_Knuckles
AlliedModders Donor
Join Date: Mar 2005
Location: SW Florida
Old 01-29-2014 , 10:11   Re: Killstreak
Reply With Quote #11

"killstreak" set this to allow access to players, default is b, set blank to allow anyone to use.
__________________
Dr_Knuckles is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 01-29-2014 , 10:30   Re: Killstreak
Reply With Quote #12

For this to b apporved you will need the following:
1. A plugin version cvar.
2. Checks to see if the client is not the Server

Suggestions:
A Reply to command to the server if it trys to run the command
A ReplyToCommand to the client when they run the command.
Set the killstreak to a variable, allowing it to be set back on spawn, so players can have it on until he puts in the command again.
Allow setting the arg of the killstreak to what ever the client wants.

edit: i've added on the suggestions below (untested)

Last edited by Mitchell; 01-29-2014 at 12:24.
Mitchell is offline
Dr_Knuckles
AlliedModders Donor
Join Date: Mar 2005
Location: SW Florida
Old 01-29-2014 , 12:15   Re: Killstreak
Reply With Quote #13

With that version, you hit /ks once it turns on fine, then /ks again it turns off. Unfortunately, once you hit /ks a third or more times it only disables.
__________________
Dr_Knuckles is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 01-29-2014 , 12:25   Re: Killstreak
Reply With Quote #14

Quote:
Originally Posted by Dr_Knuckles View Post
With that version, you hit /ks once it turns on fine, then /ks again it turns off. Unfortunately, once you hit /ks a third or more times it only disables.
You're right, i accidentally put it in the wrong area.
try this one:
Attached Files
File Type: sp Get Plugin or Get Source (killstreak.sp - 568 views - 2.0 KB)
Mitchell is offline
Horsedick
AlliedModders Donor
Join Date: Sep 2011
Old 01-29-2014 , 14:59   Re: Killstreak
Reply With Quote #15

So I guess this is how this works... I turn it on and I get killstreak, I suicide and it told me I had ended the streak which makes sense. Then to get it again it said to use !ks to enable it again yet when I do it toggled it off, so then I had to type it a third time to get it back on.

Does that make sense or no?
Horsedick is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 01-29-2014 , 15:04   Re: Killstreak
Reply With Quote #16

It should set your killstreak back to what you put in firstly when you spawn.
Mitchell is offline
Dr_Knuckles
AlliedModders Donor
Join Date: Mar 2005
Location: SW Florida
Old 01-29-2014 , 15:07   Re: Killstreak
Reply With Quote #17

It does make sense. I have no idea why, I didn't add that part of the code. Arg.
__________________
Dr_Knuckles is offline
Dr_Knuckles
AlliedModders Donor
Join Date: Mar 2005
Location: SW Florida
Old 01-29-2014 , 15:09   Re: Killstreak
Reply With Quote #18

Quote:
Originally Posted by Mitchell View Post
It should set your killstreak back to what you put in firstly when you spawn.
It doesn't.
__________________
Dr_Knuckles is offline
Happy DODs player
AlliedModders Donor
Join Date: Sep 2009
Old 01-29-2014 , 15:30   Re: Killstreak
Reply With Quote #19

"killstreak" ""

Got this in my override cfg. But after a restart from the server people cant use the !ks command.

Am i missing someting here> Further great plugin.
__________________
Happy DODs player is offline
Dr_Knuckles
AlliedModders Donor
Join Date: Mar 2005
Location: SW Florida
Old 01-29-2014 , 15:42   Re: Killstreak
Reply With Quote #20

Well in 1.1 it was working right. Dammit.
__________________
Dr_Knuckles 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 04:39.


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