Thread: [Solved] Right Моusе Аttасk
View Single Post
Author Message
Rhyme
Member
Join Date: Aug 2010
Location: Russia (Moscow)
Old 01-14-2018 , 00:22   Right Моusе Аttасk
Reply With Quote #1

Hello guys Sorry for my bad english. How do I make the client_print work only when victim is die from the right mоusе buttоn, as is known thе knifе has 2 types of attack
PHP Code:
#include <amxmodx>

public plugin_init()
{
    
register_plugin("0""1""2")
    
register_event("DeathMsg""Event_Death""a")
}

public 
Event_Death(id)
{
    new 
iAttackerID read_data(1)
    new 
iVictimID read_data(2)

    if(!
is_user_connected(iAttackerID) || iVictimID == iAttackerID)
        return 
PLUGIN_CONTINUE;

    new 
nameA[33], nameV[33]
    
get_user_name(iAttackerIDnameA32)
    
get_user_name(iVictimIDnameV32)

    
client_print(iAttackerID"[AMXX] You kill %s by аttасk2 mоusе"nameV)

and further still it would be nice to find out how to make it written only when victim is die from attacker which be in air , in jump

Last edited by Rhyme; 01-14-2018 at 03:15.
Rhyme is offline
Send a message via ICQ to Rhyme Send a message via Skype™ to Rhyme