Raised This Month: $ Target: $400
 0% 

Display death message


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
WolfGang
BANNED
Join Date: Oct 2010
Old 03-17-2013 , 20:23   Display death message
Reply With Quote #1

I'd tried this but no message showed up when killed by a infected or survivor, is this how you print a player death message?
PHP Code:
else if(GetClientTeam(client) == && GetClientTeam(client) == 3)
        {
            
decl String:vName[MAX_NAME_LENGTH];
            
GetClientName(attackervNamesizeof(vName));
            if(
notifyPrintToChat(client"%s %T"MSGTAG"Killed Message"LANG_SERVERvName);
        } 
Code:
"Killed Message"
	{
		"#format"	"{1:s}"
		"en"		"You were Killed by {1}"
	}

Last edited by WolfGang; 03-17-2013 at 20:24.
WolfGang is offline
thetwistedpanda
Good Little Panda
Join Date: Sep 2008
Old 03-17-2013 , 21:10   Re: Display death message
Reply With Quote #2

PHP Code:
if(GetClientTeam(client) == && GetClientTeam(client) == 3
Will never be true as a client cannot be on both teams 2 and 3. && is AND, || is OR.
</span></span>
__________________
thetwistedpanda is offline
WolfGang
BANNED
Join Date: Oct 2010
Old 03-17-2013 , 23:04   Re: Display death message
Reply With Quote #3

I'm still new to source pawn. So would it be ... ?

PHP Code:
else if(GetClientTeam(client) == || GetClientTeam(client) == 3)
        {
            
decl String:vName[MAX_NAME_LENGTH];
            
GetClientName(attackervNamesizeof(vName));
            if(
notifyPrintToChat(client"%s %T"MSGTAG"Killed Message"LANG_SERVERvName);
        } 
WolfGang is offline
PriceLess
Senior Member
Join Date: Sep 2012
Location: Jungle
Old 03-17-2013 , 23:18   Re: Display death message
Reply With Quote #4

Quote:
Originally Posted by WolfGang View Post
I'm still new to source pawn. So would it be ... ?

PHP Code:
else if(GetClientTeam(client) == || GetClientTeam(client) == 3)
        {
            
decl String:vName[MAX_NAME_LENGTH];
            
GetClientName(attackervNamesizeof(vName));
            if(
notifyPrintToChat(client"%s %T"MSGTAG"Killed Message"LANG_SERVERvName);
        } 
yes.
__________________
sincerely PriceLess
PriceLess is offline
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 04:14.


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