View Single Post
splewis
Veteran Member
Join Date: Feb 2014
Location: United States
Old 03-03-2015 , 16:31   Re: [CS:GO] Multi-1v1 (v1.0.0, 2015-2-4)
Reply With Quote #609

Quote:
Originally Posted by anubias View Post
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"KnifeHandlerMulti1v1_NullChoiceMenufalse);
}

public 
void KnifeHandler(int client) {
    
Client_RemoveAllWeapons(client""true);
    
Client_SetArmor(client100);
    
GivePlayerItem(client"weapon_knife");

__________________

Last edited by splewis; 03-03-2015 at 16:31.
splewis is offline