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

Plugin Request: Hide Killfeed


Post New Thread Reply   
 
Thread Tools Display Modes
DarkDeviL
SourceMod Moderator
Join Date: Apr 2012
Old 01-04-2017 , 16:59   Re: Plugin Request: Hide Killfeed
Reply With Quote #21

Quote:
Originally Posted by Mitchell View Post
I have a feeling that you have uploaded and loaded 4 different plugins that does the same thing.
I was sitting with the same impression.

Look out and make sure you actually overwrote your previous plugin(s), rather than loading another one of them each time. ;)
__________________
Mostly known as "DarkDeviL".

Dropbox FastDL: Public folder will no longer work after March 15, 2017!
For more info, see the [SRCDS Thread], or the [HLDS Thread].
DarkDeviL is offline
irepz
Senior Member
Join Date: Mar 2013
Location: France
Old 01-04-2017 , 17:06   Re: Plugin Request: Hide Killfeed
Reply With Quote #22

dayum you're right, i'm using a new system and i thought it was overriding plugin but in fact not...

Btw, kills are still displayed 2 times
__________________
irepz is offline
Chaosxk
Veteran Member
Join Date: Aug 2010
Location: Westeros
Old 01-04-2017 , 17:09   Re: Plugin Request: Hide Killfeed
Reply With Quote #23

Did you try any of the changes me or arne made? after overwriting your old one.
__________________
Chaosxk is offline
irepz
Senior Member
Join Date: Mar 2013
Location: France
Old 01-04-2017 , 17:35   Re: Plugin Request: Hide Killfeed
Reply With Quote #24

Sorry wasn't able to edit my post. Seems working, i'll do more test tomorrow and let you know thanks for all =)
__________________
irepz is offline
fragnichtnach
AlliedModders Donor
Join Date: Oct 2008
Old 02-15-2017 , 05:12   Re: Plugin Request: Hide Killfeed
Reply With Quote #25

Quote:
Originally Posted by psychonic View Post
I misinterpreted "your own killfeed" as your own kills. Deaths will be included below, as well as a fix for that error being logged.
Code:
#include <sourcemod> public void OnPluginStart() {     HookEvent("player_death", OnPlayerDeath, EventHookMode_Pre); } public Action OnPlayerDeath(Event event, const char[] strName, bool bDontBroadcast) {     event.BroadcastDisabled = true;         int attacker = GetClientOfUserId(event.GetInt("attacker"));     if (attacker != 0 && IsClientConnected(attacker) && !IsFakeClient(attacker))     {            event.FireToClient(attacker);     }         int victim = GetClientOfUserId(event.GetInt("userid"));     if (victim != 0 && victim != attacker && IsClientConnected(victim) && !IsFakeClient(victim))     {            event.FireToClient(victim);     }     return Plugin_Continue; }
Is this causing any problems, if I am hooking the "player_death"-event in another plugin?
Code:
HookEventEx("player_death",	EventPlayerDeath);
public Action:EventPlayerDeath(Handle:event, const String:name[], bool:dontBroadcast)
I upgraded to sourcemod 1.9 because I want to run this! Now I get this error:
Code:
L 02/01/2017 - 17:40:50: [SM] Exception reported: Instruction contained invalid parameter
L 02/01/2017 - 17:40:50: [SM] Blaming: ranking.smx
L 02/01/2017 - 17:40:50: [SM] Call stack trace:
L 02/01/2017 - 17:40:50: [SM]   [1] Line 2189, ranking.sp::EventPlayerDeath
edited: It is probably not related to this killfeed-plugin. Same errors without the killfeed-plugin. It is related to sourcemod 1.9! Is there anything to keep in mind while working and reading from events?

edited 2nd time: I think "Format()" is causing the problem with a lot of parameters. But I am not sure. I can't really figure it out. The same error is appearing at the RankMe plugin every time it wants to save a player to the database.

Last edited by fragnichtnach; 02-15-2017 at 10:28. Reason: added some information
fragnichtnach is offline
fragnichtnach
AlliedModders Donor
Join Date: Oct 2008
Old 02-15-2017 , 08:34   Re: Plugin Request: Hide Killfeed
Reply With Quote #26

Is there a way to build this with 1.8? 1.9 is throwing errors that i can't get rid of...
fragnichtnach is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 02-15-2017 , 10:05   Re: Plugin Request: Hide Killfeed
Reply With Quote #27

Try just using this plugin: https://forums.alliedmods.net/showthread.php?p=2490626
Mitchell is offline
fragnichtnach
AlliedModders Donor
Join Date: Oct 2008
Old 02-15-2017 , 12:46   Re: Plugin Request: Hide Killfeed
Reply With Quote #28

Quote:
Originally Posted by Mitchell View Post
Thanks, this should work.
fragnichtnach is offline
Vit_amin
Senior Member
Join Date: Dec 2015
Location: Russian Federation
Old 10-23-2017 , 17:09   Re: Plugin Request: Hide Killfeed
Reply With Quote #29

Why when we used FireToClient we don't close Handle ?

Quote:
Fires a game event to only the specified client.

Unlike Fire, this function DOES NOT close the event Handle.

Last edited by Vit_amin; 10-23-2017 at 17:15.
Vit_amin is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 10-23-2017 , 17:35   Re: Plugin Request: Hide Killfeed
Reply With Quote #30

Quote:
Originally Posted by Vit_amin View Post
Why when we used FireToClient we don't close Handle ?
So you can send to multiple different clients. You just need to close it after sending it to all the players you want, no big deal.
Mitchell 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 12:23.


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