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

Solved Knife Bonus Help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
lantimilan
Senior Member
Join Date: May 2016
Old 03-21-2019 , 09:52   Knife Bonus Help
Reply With Quote #1

Hello who can help me i want to remove HUD but when somebody kill with knife to show message just for player who kill not for all i have one .sma

PHP Code:
#include <amxmodx>
#include <cstrike>
#include <cromchat>


#define PLUGIN "Thika Bonus"
#define VERSION "1.0"
#define AUTHOR "Bin!n!"

new g_money

public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_event("DeathMsg""DeathMsg""a")
    
g_money register_cvar ("g_money""2500");
}
public 
DeathMsg()
{
    new 
zabojca read_data(1);
    new 
ofiara read_data(2);
    new 
weapon[32];
    
read_data(4,weapon,31);

    if(
zabojca == ofiara || zabojca == || ofiara == 0)
    return;

    if(
containi(weapon"knife") == -1)
    return;

    if(!
is_user_alive(zabojca))
    return;

    new 
name_zabojca[32], name_ofiara[32], money get_pcvar_num(g_money)
    
get_user_name(zabojcaname_zabojca31);
    
get_user_name(ofiaraname_ofiara31);
    
    
set_hudmessage(25500, -1.00.30, .holdtime 5.0)
    
show_hudmessage(0"%s theri me thike %s"name_zabojcaname_ofiara)
    
    
CC_SendMessage(id"^x01[^x04Thika^x01]^x03: ^x01Te lumte ju keni fituar ^x04 %d$ ^x01per therjen me thike.",money);

    
cs_set_user_money(zabojcacs_get_user_money(zabojca)+money1);


Last edited by lantimilan; 03-22-2019 at 17:19.
lantimilan is offline
Send a message via MSN to lantimilan
 



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 08:55.


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