Raised This Month: $51 Target: $400
 12% 

Solved Right Моusе Аttасk


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



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 01:39.


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