Hello. I am trying to get the frags the player has.
It's for a CS:S plugin.
The code currently looks like this:
Code:
#include <sourcemod>
public Plugin:myinfo = {
name = "Test",
author = "Addemod",
description = "Test",
url = ""
};
public OnPluginStart()
{
HookEvent("player_jump", Event_PlayerJump, EventHookMode_Pre);
}
public Action Event_PlayerJump(Event event, const char[] name, bool:dontBroadcast)
{
int client = GetClientOfUserId(event.GetInt("userid"));
PrintToChat(client, "You currently have %s kills.", GetClientDeaths(client));
return Plugin_Handled;
}
It prints to the chat, but with the %s empty. It looks like "You currently have kills.".
Any idea??
Reference:
https://sm.alliedmods.net/new-api/cl...GetClientFrags