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

Train knife kill


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Admin Commands       
Pastout
Senior Member
Join Date: Dec 2010
Location: 1337 Street LeetTown
Old 04-13-2013 , 22:06   Train knife kill
Reply With Quote #1

Train Knife Kill

I'll do my best to explain how I came up with this idea.
Okay I was playing in a knife server and heard the term being trained on 35hp. And from what I understand being trained is when players on the same team follow each other back to back just a like a train and kill people. Well I made plugin that detects this and adds a sound and chat message to this and also a deathmessage top right corner with a train symbol. If you have any suggestions please feel free to tell me.





Cvars ( 1=On || 0=Off )
  • train_sound 1 //enables/disables sound
  • train_message 1 //enables/disables message
  • train_killangle 145 // 0-180 [Do Not change unless you know what you are doing.]
    • kill angle helps detect train kill by checking what angle the killer has killed his victim at.
    • The higher the angle the more direct the kill has to be.
train_punishment Default: Blind
  • no //Turns punishment off
  • off //Turns punishment off
  • none //Turns punishment off
  • slay //slays player
  • kill //slays player
  • slap //slaps player
  • smack //slaps player
  • drug //drugs player
  • dope //drugs player
  • blind //blinds player
  • sightless //blinds player
[IMG]http://img818.**************/img818/607/trainkiller.jpg[/IMG]
Attached Files
File Type: zip trainkiller.zip (161.5 KB, 489 views)
File Type: sma Get Plugin or Get Source (trainkiller.sma - 1273 views - 8.9 KB)

Last edited by Pastout; 04-22-2013 at 14:35. Reason: Updated Added punishment
Pastout is offline
tonykaram1993
Senior Member
Join Date: Mar 2013
Location: This World
Old 04-14-2013 , 01:27   Re: Train knife kill
Reply With Quote #2

PHP Code:
new g_szPlayer[] = "player"
    
RegisterHamHam_Killedg_szPlayer"Ham_CBasePlayer_Killed", .Post false 
Why not simply this?
PHP Code:
RegisterHamHam_Killed"player""Ham_CBasePlayer_Killed", .Post false 
__________________
My Plugins:
UltimatePlugin
UltimateSurf
UltimateAdmin
Code:
rcon version | rcon amxx version | rcon meta version
rcon amxx plugins | rcon meta list | rcon status
I AM INACTIVE ON THIS FORUM - For direct contact: [email protected]
tonykaram1993 is offline
Pastout
Senior Member
Join Date: Dec 2010
Location: 1337 Street LeetTown
Old 04-14-2013 , 11:43   Re: Train knife kill
Reply With Quote #3

Quote:
Originally Posted by tonykaram1993 View Post
PHP Code:
new g_szPlayer[] = "player"
    
RegisterHamHam_Killedg_szPlayer"Ham_CBasePlayer_Killed", .Post false 
Why not simply this?
PHP Code:
RegisterHamHam_Killed"player""Ham_CBasePlayer_Killed", .Post false 
Cause its just the way I code...
Pastout is offline
corei7
Junior Member
Join Date: Jan 2012
Old 04-14-2013 , 13:40   Re: Train knife kill
Reply With Quote #4

There should be a punishment for training. Like advanced team attack control but not exactly killing a teammate but training them.
corei7 is offline
Pastout
Senior Member
Join Date: Dec 2010
Location: 1337 Street LeetTown
Old 04-14-2013 , 13:59   Re: Train knife kill
Reply With Quote #5

Quote:
Originally Posted by corei7 View Post
There should be a punishment for training. Like advanced team attack control but not exactly killing a teammate but training them.
What do you want to see
slay, slap, blind user or other?
Pastout is offline
corei7
Junior Member
Join Date: Jan 2012
Old 04-14-2013 , 14:27   Re: Train knife kill
Reply With Quote #6

Quote:
Originally Posted by Pastout View Post
What do you want to see
slay, slap, blind user or other?
Yes, should be..
1.Slap Trainer 5 Times
2.Blind Trainer
3.Drug Trainer
4.Slay Trainer
corei7 is offline
Pastout
Senior Member
Join Date: Dec 2010
Location: 1337 Street LeetTown
Old 04-14-2013 , 18:01   Re: Train knife kill
Reply With Quote #7

Quote:
Originally Posted by corei7 View Post
Yes, should be..
1.Slap Trainer 5 Times
2.Blind Trainer
3.Drug Trainer
4.Slay Trainer
Added Check update and cvar for your choice of punishment
Pastout is offline
corei7
Junior Member
Join Date: Jan 2012
Old 04-14-2013 , 19:35   Re: Train knife kill
Reply With Quote #8

Nice! I'll add it.
corei7 is offline
FanatikSVK
Member
Join Date: Aug 2012
Location: Slovakia
Old 04-15-2013 , 05:46   Re: Train knife kill
Reply With Quote #9

Wow nice
__________________
FanatikSVK is offline
Send a message via Skype™ to FanatikSVK
Serkan Kischa
Member
Join Date: Dec 2012
Old 04-15-2013 , 11:30   Re: Train knife kill
Reply With Quote #10

DAMN!! This is awesome!! n1 Pastout like always
Serkan Kischa 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 14:19.


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