forked from aredwood/nkh-soapdm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconquer-soapdmprint.sp
29 lines (26 loc) · 940 Bytes
/
conquer-soapdmprint.sp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#include <sourcemod>
#include <morecolors>
public OnPluginStart(){
HookEvent("player_death",Event_player_death);
}
new victim;
new attacker;
new assister;
public Action:Event_player_death(Handle:event,String:name[],bool:Broadcast){
victim = GetClientOfUserId(GetEventInt(event,"userid"));
attacker = GetClientOfUserId(GetEventInt(event,"attacker"));
assister = GetEventInt(event,"assister");
if(attacker != victim){
CPrintToChat(victim,"{arcana}[Conquer] {white}Your attacker had {community}%i{white} health remaining.",GetClientHealth(attacker));
}
if(assister > -1){
CPrintToChat(victim,"{arcana}[Conquer] {white}Their assister had {community}%i{white} health remaining.",GetClientHealth(GetClientOfUserId(assister)));
}
}
public Plugin:myinfo = {
name = "Conquer DM Health remaining",
author = "da_apple",
description = "DM Health remaining",
url = "https://steamcommunity.com/groups/conquerservers",
version="1.0"
}