Raised This Month: $51 Target: $400
 12% 

Multi 1v1


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
SnowHP
Senior Member
Join Date: Sep 2016
Location: Porto, Portugal
Old 11-18-2017 , 11:38   Multi 1v1
Reply With Quote #1

Hello guys,

I need to remove the pistol on AWP round on multi1v1 plugin ( https://forums.alliedmods.net/showthread.php?t=241056 ) aparently is there no option to remove it, if someone can help, I would be grateful.
__________________
SnowHP is offline
Vaggelis
Senior Member
Join Date: May 2017
Old 11-18-2017 , 11:41   Re: Multi 1v1
Reply With Quote #2

sm_multi1v1_default_pistol ""
sm_multi1v1_pistol_behavior "3"
Dont know if this works
Vaggelis is offline
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen
Old 11-18-2017 , 11:42   Re: Multi 1v1
Reply With Quote #3

PHP Code:
g_PistolBehaviorCvar CreateConVar("sm_multi1v1_pistol_behavior""0""Behavior 0=always give the pistol the player selected, 1=never give pistols on non-pistol rounds, 2=always give sm_multi1v1_default_pistol on non-pistol rounds 3=give pistol choice on rifle/pistol rounds, but use sm_multi1v1_default_pistol on awp rounds"); 
Have tried to set it to 1 ?
__________________
Want to check my plugins ?
Arkarr is offline
Vaggelis
Senior Member
Join Date: May 2017
Old 11-18-2017 , 11:46   Re: Multi 1v1
Reply With Quote #4

Quote:
Originally Posted by Arkarr View Post
PHP Code:
g_PistolBehaviorCvar CreateConVar("sm_multi1v1_pistol_behavior""0""Behavior 0=always give the pistol the player selected, 1=never give pistols on non-pistol rounds, 2=always give sm_multi1v1_default_pistol on non-pistol rounds 3=give pistol choice on rifle/pistol rounds, but use sm_multi1v1_default_pistol on awp rounds"); 
Have tried to set it to 1 ?
He said on AWP round only
Vaggelis is offline
SnowHP
Senior Member
Join Date: Sep 2016
Location: Porto, Portugal
Old 11-18-2017 , 12:05   Re: Multi 1v1
Reply With Quote #5

Quote:
Originally Posted by Vaggelis View Post
He said on AWP round only
Yes only on awp round. I read that u need to change something on multi1v1.inc but idk how to do it
__________________
SnowHP is offline
Vaggelis
Senior Member
Join Date: May 2017
Old 11-18-2017 , 12:12   Re: Multi 1v1
Reply With Quote #6

Quote:
Originally Posted by SnowHP View Post
Yes only on awp round. I read that u need to change something on multi1v1.inc but idk how to do it
Go there: /csgo/cfg/sourcemod/multi1v1/
Open the multi1v1.cfg and then search for sm_multi1v1_default_pistol and sm_multi1v1_pistol_behavior and put these:
sm_multi1v1_default_pistol ""
sm_multi1v1_pistol_behavior "3"

Last edited by Vaggelis; 11-18-2017 at 12:12.
Vaggelis is offline
Bobakanoosh
Senior Member
Join Date: Sep 2015
Location: United States
Old 11-18-2017 , 12:19   Re: Multi 1v1
Reply With Quote #7

If the CVAR doesn't work...
PHP Code:
#include <multi1v1>
#include <sdktools>

public void Multi1v1_OnRoundTypeDecided(int arenaint player1int player2introundType) {

    if (
player1 || player1 MaxClients)
        return;
        
    if (
player2 || player2 MaxClients)
        return;

    if (!
IsClientInGame(player1) || !IsClientInGame(player2))
        return;
    
    
char sRoundType[64];
    
Multi1v1_GetRoundTypeDisplayName(roundTypesRoundTypesizeof(sRoundType));
    
    if(
StrEqual(sRoundType"awp"false)) {
    
        
StripWeaponTier(player12);
        
StripWeaponTier(player22);

    }
}

stock void StripWeaponTier(int clientint tier) {

    if (
client || client MaxClients)
        return;

    if (!
IsClientInGame(client))
        return;
    
    
int weapon GetPlayerWeaponSlot(clienttier);
    
    if (
weapon != -1) {
    
        if (
IsValidEntity(weapon)) {

            
RemovePlayerItem(clientweapon);
            
AcceptEntityInput(weapon"Kill");

        }
    
    }


Bobakanoosh is offline
sneaK
SourceMod Moderator
Join Date: Feb 2015
Location: USA
Old 11-18-2017 , 16:12   Re: Multi 1v1
Reply With Quote #8

Why not just create a custom AWP round with no pistol, if there are some players who want AWP no pistol rounds? Pistols are part of the game.
__________________
sneaK is offline
Vaggelis
Senior Member
Join Date: May 2017
Old 11-18-2017 , 16:19   Re: Multi 1v1
Reply With Quote #9

Quote:
Originally Posted by sneaK View Post
Why not just create a custom AWP round with no pistol, if there are some players who want AWP no pistol rounds? Pistols are part of the game.
Why create a new custom round when u can put these i wrote?
Vaggelis is offline
sneaK
SourceMod Moderator
Join Date: Feb 2015
Location: USA
Old 11-18-2017 , 20:36   Re: Multi 1v1
Reply With Quote #10

Quote:
Originally Posted by Vaggelis View Post
Why create a new custom round when u can put these i wrote?
I'm not asking you, I'm asking OP. Reasoning being; why cater to only one side (who wants AWP, no pistol) when you can cater to both, and keep everyone happy?
__________________
sneaK is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 16:49.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode