View Single Post
crazydog
AlliedModders Donor
Join Date: Jan 2006
Old 08-18-2009 , 05:18   Re: [L4D] Player Stats (Co-op) v1.1.1
Reply With Quote #585

Just a quick bug report:
I've noticed that if I have in-game notifications off, people are still shown messages when they save others from hunters/smokers.

Edit:
Line 1790
Code:
    PrintToChat(Savior, "\x04[\x03RANK\x04] \x01You have earned \x04%i \x01points for saving \x05%s\x01 from a \x04%s!", Score, VictimName, SaveFrom);
doesn't have an "if(mode) clause around it, and HunterSmokerSave() doesn't declare Mode.

To anyone who wants to fix it themselves:

1) Go to line 1771 (decl String:SaviorName[MAX_LINE_WIDTH];)
2) Add the following on the previous line: new Mode = GetConVarInt(cvar_AnnounceMode);
3) Go to line 1790
4) Add the following on the previous line: if (Mode)

I've also attached the plugin with that quick change to this post.
Attached Files
File Type: sp Get Plugin or Get Source (l4d_stats.sp - 723 views - 66.2 KB)

Last edited by crazydog; 08-18-2009 at 05:28.
crazydog is offline