Мой код. В чем ошибка?
Code
#include <sourcemod>
#include <sdktools_functions>
#include <sdktools_entinput>
#define VERSION "1.0"
public Plugin:myinfo = {
name = "nUseButtonSay",
author = "nynCuKaH",
description = "Вычесляем кто нажал на кнопку :)",
version = VERSION,
url = "",
};
public OnPluginStart()
{
HookEvent("round_start", round_start);
}
public round_start(Handle:event, const String:name[], bool:dontBroadcast)
{
decl String:buffer[255];
Format(buffer, sizeof(buffer), "");
for(new i = 1; i <= MaxClients; i++)
{
// Are they spectating the same player as User?
Format(buffer, sizeof(buffer), "%s", buffer, i);
}
}
public Action:OnPlayerRunCmd(client, &buttons, &impulse, Float:vel[3], Float:angles[3], &weapon)
{
decl String:buffer[255];
{
if (GetClientTeam(client) == 1 || !IsPlayerAlive(client))
GetClientButtons(client, IN_USE);
Format(buffer, sizeof(buffer), "\x05[nButton] \x03Игрок \x04%s \x03нажал на кнопку!", client, buffer);
}
}