Quote:
In terms of a request, I want you to figure out how I can make a scout round without losing the knife round.
This is what I've tried so far.
Hey, I figured it out! I can now add whatever type of round I want!
Code:
#include <sourcemod>
#include <smlib>
#include "include/multi1v1.inc"
#include "multi1v1/version.sp"
#pragma semicolon 1
public Plugin:myinfo = {
name = "CS:GO Multi1v1: knife round addon",
author = "splewis",
description = "Adds an unranked knife round-type",
version = PLUGIN_VERSION,
url = "https://github.com/splewis/csgo-multi-1v1"
};
public void Multi1v1_OnRoundTypesAdded() {
Multi1v1_AddRoundType("Knife", "knife", KnifeHandler, Multi1v1_NullChoiceMenu, true, false);
Multi1v1_AddRoundType("Scout", "ssg08", ScoutHandler, Multi1v1_NullChoiceMenu, true,false);
}
public void KnifeHandler(int client) {
Client_RemoveAllWeapons(client, "", true);
Client_SetArmor(client, 100);
GivePlayerItem(client, "weapon_knife");
}
public void ScoutHandler(int client) {
Client_RemoveAllWeapons(client, "", true);
Client_SetArmor(client, 100);
GivePlayerItem(client, "weapon_ssg08");
}