Raised This Month: $ Target: $400
 0% 

Train knife kill


Post New Thread Reply   
 
Thread Tools Display Modes
jingojang
Senior Member
Join Date: Feb 2010
Location: The Moon
Old 04-16-2013 , 06:19   Re: Train knife kill
Reply With Quote #11

Wait what?

Code:
train_punishment Default: Blind
no //Turns punishment off
off //Turns punishment off
none //Turns punishment off
Three commands with the same purpose.
jingojang is offline
Pastout
Senior Member
Join Date: Dec 2010
Location: 1337 Street LeetTown
Old 04-16-2013 , 13:09   Re: Train knife kill
Reply With Quote #12

Quote:
Originally Posted by jingojang View Post
Wait what?

Code:
train_punishment Default: Blind
no //Turns punishment off
off //Turns punishment off
none //Turns punishment off
Three commands with the same purpose.
Yes as you can see...
If the admin changes the cvar to any of thoses it will turn off. Its to make it easier for the admin.

If you read more the other commands have them too.
Pastout is offline
Pastout
Senior Member
Join Date: Dec 2010
Location: 1337 Street LeetTown
Old 04-22-2013 , 14:38   Re: Train knife kill
Reply With Quote #13

Updated added a better checking system.

Added new cvar
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.
Pastout is offline
roymor
Senior Member
Join Date: Apr 2012
Old 04-22-2013 , 17:00   Re: Train knife kill
Reply With Quote #14

Nice plugin never heard this term "train kill" but I know how annoying it is to get killed this way XD
roymor is offline
UchihaSkills
Senior Member
Join Date: May 2013
Location: Germany
Old 07-16-2013 , 21:39   Re: Train knife kill
Reply With Quote #15

Why this Plugin dont get approved?
UchihaSkills is offline
Old 07-19-2013, 03:25
LordOfNothing
This message has been deleted by ConnorMcLeod. Reason: troll, or posting random confusing code, or posting for posts count
bristol
New Member
Join Date: Jul 2013
Old 07-22-2013 , 05:09   Re: Train knife kill
Reply With Quote #16

Hello, your plugin "TrainKiller" is magnificent, I delivered it to myself on knife the server, a floor of day everything was excellent, but then it simply was disconnected and in ravines such error - http://rghost.ru/47585155
bristol is offline
Hembi
Member
Join Date: Mar 2013
Location: Hungary
Old 09-12-2013 , 14:25   Re: Train knife kill
Reply With Quote #17

Hy!
I'm Hembi.
This plugin so good for my knife server , but not working perfect.
Error log
L 09/11/2013 - 19:090: Start of error session.
L 09/11/2013 - 19:090: Info (map "35hp_2") (file "addons/amxmodx/logs/error_20130911.log")
L 09/11/2013 - 19:090: Invalid player id 147
L 09/11/2013 - 19:090: [AMXX] Displaying debug trace (plugin "trainkiller.amxx")
L 09/11/2013 - 19:090: [AMXX] Run time error 10: native error (native "get_user_weapon")
L 09/11/2013 - 19:090: [AMXX] [0] trainkiller(1).sma::Ham_CBasePlayer_Killed (line 96)
L 09/11/2013 - 19:13:41: Invalid player id 147
L 09/11/2013 - 19:13:41: [AMXX] Displaying debug trace (plugin "trainkiller.amxx")
L 09/11/2013 - 19:13:41: [AMXX] Run time error 10: native error (native "get_user_weapon")
L 09/11/2013 - 19:13:41: [AMXX] [0] trainkiller(1).sma::Ham_CBasePlayer_Killed (line 96)
L 09/11/2013 - 19:22:12: Invalid player id 147
L 09/11/2013 - 19:22:12: [AMXX] Displaying debug trace (plugin "trainkiller.amxx")
L 09/11/2013 - 19:22:12: [AMXX] Run time error 10: native error (native "get_user_weapon")
L 09/11/2013 - 19:22:12: [AMXX] [0] trainkiller(1).sma::Ham_CBasePlayer_Killed (line 96)

Please fix the error.

Last edited by Hembi; 09-12-2013 at 14:26.
Hembi is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 10-30-2015 , 11:51   Re: Train knife kill
Reply With Quote #18

For approval:

1.Fix the errors.
Quote:
Originally Posted by Hembi View Post
Hy!
I'm Hembi.
This plugin so good for my knife server , but not working perfect.
Error log
L 09/11/2013 - 19:090: Start of error session.
L 09/11/2013 - 19:090: Info (map "35hp_2") (file "addons/amxmodx/logs/error_20130911.log")
L 09/11/2013 - 19:090: Invalid player id 147
L 09/11/2013 - 19:090: [AMXX] Displaying debug trace (plugin "trainkiller.amxx")
L 09/11/2013 - 19:090: [AMXX] Run time error 10: native error (native "get_user_weapon")
L 09/11/2013 - 19:090: [AMXX] [0] trainkiller(1).sma::Ham_CBasePlayer_Killed (line 96)
L 09/11/2013 - 19:13:41: Invalid player id 147
L 09/11/2013 - 19:13:41: [AMXX] Displaying debug trace (plugin "trainkiller.amxx")
L 09/11/2013 - 19:13:41: [AMXX] Run time error 10: native error (native "get_user_weapon")
L 09/11/2013 - 19:13:41: [AMXX] [0] trainkiller(1).sma::Ham_CBasePlayer_Killed (line 96)
L 09/11/2013 - 19:22:12: Invalid player id 147
L 09/11/2013 - 19:22:12: [AMXX] Displaying debug trace (plugin "trainkiller.amxx")
L 09/11/2013 - 19:22:12: [AMXX] Run time error 10: native error (native "get_user_weapon")
L 09/11/2013 - 19:22:12: [AMXX] [0] trainkiller(1).sma::Ham_CBasePlayer_Killed (line 96)

Please fix the error.
2.In Check_Connections you should use new, not static.
3.In Ham_CBasePlayer_Killed:
  • Retrieve victim's team before the loop. The same applies for cvars, cache them before looping.
  • Instead of looping all players and checking the distance, you should use find_sphere_class. This will give an array of players that meet all the requierements.
  • Creating variables inside a loop it's not a good ideea. Ok, they are static and will be initialized only one time, but it can confuse beginners when they see this. For consistency, I would like you to declare them outside the loop and make them "new".
4.Since GetPunishMethod is called from a loop the vars should be static.
5.Add ML please.
6.Add the cvars description inside the source file, it will be easier for the end user.
7.Destroy the trie in plugin_end. While AMXX should free all handles automatically, it's a good habit to do it yourself, and that way you will be sure that you don't waste memory. At the end, I am not sure how usefull your trie is, you could create a const and save what you need, the difference is anyway trivial.
Only this for now, we'll see later.
__________________
HamletEagle is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 12-18-2015 , 07:18   Re: Train knife kill
Reply With Quote #19

No changes, unapproved. You can PM me after you update the plugin.
__________________

Last edited by HamletEagle; 12-18-2015 at 07:18.
HamletEagle 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:37.


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