He tries to make a duel in the arena where the player is half-blind but does not work
PHP Code:
#include "include/multi1v1.inc"
#include "multi1v1/generic.sp"
#include "multi1v1/version.sp"
#include <sourcemod>
#include <smlib>
#include <multicolors>
#pragma semicolon 1
#pragma newdecls required
public Plugin myinfo = {
name = "Zacma",
author = " ",
description = "blind round",
version = PLUGIN_VERSION,
url = "https://github.com/splewis/csgo-multi-1v1"
};
public void Multi1v1_OnRoundTypesAdded() {
Multi1v1_AddRoundType("Pojedynek na zaćmieniu", "blind", BlindHandler, true, false, "", true);
}
public void BlindHandler(int client) {
GivePlayerItem(client, "weapon_knife");
PrintCenterText(client, "Walka po zaćmieniu!");
ServerCommand("sm_blind 50%d", GetClientUserId(client));
}