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

Solved Knife Bonus Help


Post New Thread Reply   
 
Thread Tools Display Modes
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
SHIELD755
Veteran Member
Join Date: Feb 2018
Location: FROM MARVEL STUDIO
Old 03-21-2019 , 10:29   Re: Knife Bonus
Reply With Quote #2

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(id

    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); 
     
     
///--HUD--REMOVE-///

    ///////set_hudmessage(255, 0, 0, -1.0, 0.30, .holdtime = 5.0) 
    ///////show_hudmessage(0, "%s theri me thike %s", name_zabojca, name_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); 


EDIT : fix the cc_sendmessage error
__________________
SED LYF !!!

Last edited by SHIELD755; 03-21-2019 at 11:23.
SHIELD755 is offline
DON KHAN 1
Senior Member
Join Date: Mar 2019
Location: Pakistan
Old 03-21-2019 , 11:19   Re: Knife Bonus
Reply With Quote #3

I Think Topic Has Been Solved So Now Put Solved Before The Topic Name
DON KHAN 1 is offline
SHIELD755
Veteran Member
Join Date: Feb 2018
Location: FROM MARVEL STUDIO
Old 03-21-2019 , 11:24   Re: Knife Bonus
Reply With Quote #4

Quote:
Originally Posted by DON KHAN 1 View Post
I Think Topic Has Been Solved So Now Put Solved Before The Topic Name
maybe he got some error , so it depends on him
__________________
SED LYF !!!
SHIELD755 is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 03-21-2019 , 15:13   Re: Knife Bonus
Reply With Quote #5

Or maybe he isn't 24/7 in front of his computer. What kind of a silly comment is that? It's not up to you whether or not the thread is solved.
__________________

Last edited by OciXCrom; 03-21-2019 at 15:14.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
lantimilan
Senior Member
Join Date: May 2016
Old 03-21-2019 , 15:46   Re: Knife Bonus
Reply With Quote #6

Quote:
Originally Posted by OciXCrom View Post
Or maybe he isn't 24/7 in front of his computer. What kind of a silly comment is that? It's not up to you whether or not the thread is solved.
He not understand shield post wrong something i ask in facebook, after he update code and after this time i solved but somebody look just to make post to comment, thanks bro ;)
lantimilan is offline
Send a message via MSN to lantimilan
thEsp
BANNED
Join Date: Aug 2017
Old 03-21-2019 , 16:52   Re: Knife Bonus
Reply With Quote #7

Quote:
Originally Posted by DON KHAN 1 View Post
I Think Topic Has Been Solved So Now Put Solved Before The Topic Name
I Think You Should Learn Spelling Since Not Every Word Starts With Uppercase Letter
thEsp is offline
lantimilan
Senior Member
Join Date: May 2016
Old 03-22-2019 , 15:54   Re: Knife Bonus Help
Reply With Quote #8

Again i have problem Message again show for all players if some 2 playes kill with knife i see message thika bonus something make problem
lantimilan is offline
Send a message via MSN to lantimilan
thEsp
BANNED
Join Date: Aug 2017
Old 03-22-2019 , 16:12   Re: Knife Bonus Help
Reply With Quote #9

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 
vrasesi read_data(1); 
    new 
viktima read_data(2); 
    new 
weapon[32]; 
    
read_data(4,weapon,31); 

    if(
vrasesi == viktima || vrasesi == || viktima == 0
    return; 

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

    if(!
is_user_alive(vrasesi)) 
    return; 

    new 
name_vrasesi[32], name_viktima[32]
    
get_user_name(vrasesiname_vrasesi31); 
    
get_user_name(viktimaname_viktima31); 
     
    
set_hudmessage(25500, -1.00.30, .holdtime 5.0
    
show_hudmessage(vrasesi"%s theri me thike %s"name_vrasesiname_viktima
     
    
CC_SendMessage(vrasesi"^x01[^x04Thika^x01]^x03: ^x01Te lumte ju keni fituar ^x04 %d$ ^x01per therjen me thike.",get_pcvar_num(g_money)); 

    
cs_set_user_money(vrasesics_get_user_money(vrasesi)+get_pcvar_num(g_money), 1); 

thEsp is offline
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 07:29.


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