Raised This Month: $ Target: $400
 0% 

[REQ) Touching Kill


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 09-08-2013 , 10:02   Re: [REQ) Touching Kill
Reply With Quote #7

Try this, untested.

PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>
#include <cstrike>

#define PLUGIN "Don't touch me!"
#define VERSION "1.0.0"
#define AUTHOR "Kia"

// ===============================================================================
//     plugin_init
// ===============================================================================

public plugin_init() 
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
/* Hamsandwich */
    
    
RegisterHam(Ham_Touch"player""Ham_TouchedPlayer")
}

// ===============================================================================
//     Ham_TouchedPlayer(iEnt, id) - Called when a player gets touched
// ===============================================================================

public Ham_TouchedPlayer(TouchedToucher)
{
    if(
cs_get_user_team(Touched) == CS_TEAM_CT && cs_get_user_team(Toucher) == CS_TEAM_T)
        
user_kill(Touched)

__________________
Kia is offline
 



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 00:09.


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