Raised This Month: $ Target: $400
 0% 

Need Kill Message Plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
cREANy0
SourceMod Donor
Join Date: Jul 2012
Location: Germany
Old 02-21-2013 , 15:11   Need Kill Message Plugin
Reply With Quote #1

Hey to all,

i need a small Plugin that Print only this to Chat :

Player1 killed Player2




greetz cREANy0
__________________
cREANy0 is offline
Franc1sco
Veteran Member
Join Date: Oct 2010
Location: Spain (Madrid)
Old 02-21-2013 , 15:23   Re: Need Kill Message Plugin
Reply With Quote #2

Quote:
Originally Posted by cREANy0 View Post
Hey to all,

i need a small Plugin that Print only this to Chat :

Player1 killed Player2




greetz cREANy0
done
Attached Files
File Type: sp Get Plugin or Get Source (ata.sp - 368 views - 434 Bytes)
__________________
Veteran Coder -> Activity channel
Coding on CS2 and taking paid and free jobs.

Contact: Steam, Telegram or discord ( franug ).

You like my work? +Rep in my steam profile comments or donate.


Last edited by Franc1sco; 02-21-2013 at 15:27.
Franc1sco is offline
Send a message via MSN to Franc1sco
Bimbo1
Senior Member
Join Date: Jan 2010
Location: brazil
Old 02-21-2013 , 15:23   Re: Need Kill Message Plugin
Reply With Quote #3

Code:
#include <sourcemod>

public OnPluginStart(){

    HookEvent("player_death", OnPlayerDeath);
    
}

public OnPlayerDeath(Handle:event, const String:name[], bool:dontBroadcast){

    PrintToChatAll("%N killed %N", GetClientOfUserId(GetEventInt(event, "attacker")), GetClientOfUserId(GetEventInt(event, "userid")));
    
}
forget this. use francisco's version. it checks the attacker.

Last edited by Bimbo1; 02-21-2013 at 15:25.
Bimbo1 is offline
cREANy0
SourceMod Donor
Join Date: Jul 2012
Location: Germany
Old 02-21-2013 , 15:36   Re: Need Kill Message Plugin
Reply With Quote #4

Thanks.
__________________
cREANy0 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 06:16.


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