Quote:
Originally Posted by anubias
Hi i want to use this plugin in knife server,how to remove all guns?
|
Use a plugin to remove the other round types and add a knife round type.
PHP Code:
#include <sourcemod>
#include <smlib>
#include "include/multi1v1.inc"
public Plugin myinfo = {
name = "CS:GO Multi1v1: knife only addon",
author = "splewis",
description = "Only leaves knife rounds active",
version = "1.0.0",
url = "https://github.com/splewis/csgo-multi-1v1"
};
public void Multi1v1_OnRoundTypesAdded() {
Multi1v1_ClearRoundTypes();
Multi1v1_AddRoundType("Knife", "knife", KnifeHandler, Multi1v1_NullChoiceMenu, false);
}
public void KnifeHandler(int client) {
Client_RemoveAllWeapons(client, "", true);
Client_SetArmor(client, 100);
GivePlayerItem(client, "weapon_knife");
}
__________________