I'm doing a plugin for that to send a message to the server when you kill roshan, and the message tells the team to kill him, whether good or bad, but dont work.Somebody can help me?
@psychonic !!!!
This is the code
Code:
#include <sourcemod>
public Plugin:myinfo =
{
name = "New Plugin",
author = "cristianronaldo",
description = "<- Description ->",
version = "1.0",
url = "<- URL ->"
}
public OnPluginStart()
{
HookEvent("dota_roshan_kill", Roshan);
}
public void Roshan(Event event, const char[] name, bool dontBroadcast)
{
int team = event.GetInt("teamnumber ");
int attacker = team;
PrintToChatAll(
"Roshan has killed by %s",attacker);
}