Raised This Month: $ Target: $400
 0% 

Not displaying right


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Brreaker
Senior Member
Join Date: Oct 2009
Location: Constanta, Romania
Old 05-27-2010 , 05:58   Re: Not displaying right
Reply With Quote #1

Quote:
Originally Posted by asd13 View Post
Its not reading or displaying right the message.
Problem is that if player kills he/she sees always the same message "You killed '%s' with HeadShot" no matter is it hs or not.
PHP Code:
#include < amxmodx >

public plugin_init( ) {
    
register_event("DeathMsg""eDeath""a");
}

public 
eDeath() {
    new 
iKillerID read_data(1);
    new 
iVictimID read_data(2);
    new 
isHeadshot read_data(3);
    new 
Name[32];
    
get_user_name(iVictimIDNamecharsmax(Name));
    if(
isHeadshot) {
        
client_print(iKillerclient_print"You killed %s with a headshot!"Name);
        }
    else {
        
client_print(iKillerclient_print"You killed %s!"Name);
        }

note:
isHeadshot is a bool.

I know it's the same thing wrecked said, but I think that this way it's more user-friendly (if it would be in any way xD)
__________________
There are 10 kinds of people.Those who understand binary, and those who don't.
Also, for those who understand binary, there is a donation tab too!
No steam || PM support!
Brreaker is offline
Send a message via MSN to Brreaker Send a message via Yahoo to Brreaker
Reply



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 05:16.


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