вот еще такая ошибка в логах
Попробуй в коде:
/* Called when a flashbang has detonated (after the players have already been blinded) */
public Event_FlashbangDetonate(Handle:event, const String:name[], bool:dontBroadcast)
{
/* Is the plugin enabled? */
if (!GetConVarBool(g_hCvarEnable))
{
return;
}
/* The number of flashed players, and the player that threw the flashbang */
new client = GetClientOfUserId(GetEventInt(event, "userid"));
new count, damage, dps = GetConVarInt(g_hCvarDamage);
/* Loop through all flashed players to check if they are on the same team */
for (new i = 1; i <= MaxClients; i++)
{
/* Flash player found */
if (g_bFlashed[i] == true)
переписать на это
/* Called when a flashbang has detonated (after the players have already been blinded) */
public Event_FlashbangDetonate(Handle:event, const String:name[], bool:dontBroadcast)
{
new client = GetClientOfUserId(GetEventInt(event, "userid"));
/* Is the plugin enabled? */
if (!GetConVarBool(g_hCvarEnable) || client == 0 || !IsClientInGame(client))
{
return;
}
/* The number of flashed players, and the player that threw the flashbang */
new count, damage, dps = GetConVarInt(g_hCvarDamage);
/* Loop through all flashed players to check if they are on the same team */
for (new i = 1; i <= MaxClients; i++)
{
/* Flash player found */
if (g_bFlashed[i] == true && IsClientInGame(i))