Raised This Month: $ Target: $400
 0% 

How can i detect


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
AppStore
BANNED
Join Date: Dec 2009
Location: Saladillo
Old 12-31-2009 , 17:31   How can i detect
Reply With Quote #1

How can I tell if I am one of the attacker and one of the terrorist victim?
AppStore is offline
floatman
Senior Member
Join Date: Oct 2009
Location: nowhere.
Old 12-31-2009 , 18:32   Re: How can i detect
Reply With Quote #2

I don't understand... something like this?
PHP Code:
#include <amxmodx>
#include <hamsandwich>

static const theattacker[] = "AppStore";
static const 
thevictim[] = "AppStore1";

public 
plugin_init()
    
RegisterHam(Ham_Killed"player""fw_HamHookKill");

public 
fw_HamHookKill(iAttackeriVictimshouldgib)
{
    new 
attname[32], vicname[32];
    
get_user_nameiAttackerattnamecharsmax(attname) );
    
get_user_nameiVictimvicnamecharsmax(vicname) );

    if( 
equali(attnametheattacker) )
        
client_print(iAttackerprint_chat"%s, you are the attacker!"attname);
    
    else if( 
equali(vicnamethevictim) )
        
client_print(iVictimprint_chat"%s, you are the victim!"vicname);

    return 
HAM_IGNORED;

__________________

floatman is offline
Old 12-31-2009, 18:57
matsi
This message has been deleted by matsi. Reason: Sorry i am confused by this thread lol
Old 01-01-2010, 18:50
AppStore
This message has been deleted by AppStore. Reason: solved
Reply


Thread Tools
Display Modes

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:07.


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