Raised This Month: $ Target: $400
 0% 

Slay on TK


Post New Thread Reply   
 
Thread Tools Display Modes
Ardonicek
Senior Member
Join Date: Feb 2013
Location: My home
Old 08-27-2013 , 05:31   Re: Slay on TK
Reply With Quote #11

Looks like it doesn't work...
__________________
Latest plugin: dHUD Round | Timeleft
Ardonicek is offline
Send a message via ICQ to Ardonicek Send a message via Skype™ to Ardonicek
tonykaram1993
Senior Member
Join Date: Mar 2013
Location: This World
Old 08-27-2013 , 07:56   Re: Slay on TK
Reply With Quote #12

Here you go, I added a small check please try it.

PHP Code:
/*
    TK Slayer
    by tonykaram1993
    
    This will simpy kill a player if he killed his own team-mate.
    No options to configure, just install and play.
*/

/* Includes */
#include < amxmodx >
#include < hamsandwich >

/* Plugin Natives */
public plugin_init( ) {
    
register_plugin"TK Slayer""0.0.1""tonykaram1993" );
    
    
RegisterHamHam_Killed,        "player",        "Ham_Killed_Player_Post",        true );
}

/* Ham Hooks */
public Ham_Killed_Player_PostiVictimiKilleriShouldGib ) {
    if( 
get_user_teamiVictim ) == get_user_teamiKiller ) && iKiller != iVictim ) {
        
user_killiKiller );
        
        
client_printiKillerprint_center"You have been killed for killing your team-mate" );
    }

__________________
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
Ardonicek
Senior Member
Join Date: Feb 2013
Location: My home
Old 08-27-2013 , 17:15   Re: Slay on TK
Reply With Quote #13

Works, but not with vehicles, once again
__________________
Latest plugin: dHUD Round | Timeleft
Ardonicek is offline
Send a message via ICQ to Ardonicek Send a message via Skype™ to Ardonicek
sonel
Member
Join Date: Jul 2012
Old 08-27-2013 , 20:36   Re: Slay on TK
Reply With Quote #14

Use this plugin and it will work with vehicles:
http://forums.alliedmods.net/showthread.php?p=916987
sonel is offline
Ardonicek
Senior Member
Join Date: Feb 2013
Location: My home
Old 08-29-2013 , 13:35   Re: Slay on TK
Reply With Quote #15

VehicleRealKiller works, but nothing happens when somebody teamkills player.
__________________
Latest plugin: dHUD Round | Timeleft
Ardonicek is offline
Send a message via ICQ to Ardonicek Send a message via Skype™ to Ardonicek
tonykaram1993
Senior Member
Join Date: Mar 2013
Location: This World
Old 08-29-2013 , 15:32   Re: Slay on TK
Reply With Quote #16

Yeah of course it doesn't work. You need to check for it, you can implement the code I gave you inside that other plugin and do the neccessary checks. If you don't know how to do it, maybe someone here can. I cannot do it right since I am on my phone and I do not have my computer for another week. Sorry.
__________________
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
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 22:48.


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