Raised This Month: $32 Target: $400
 8% 

[CS:GO] Knife Swapper 1.6.5 [Updated 2015.12.07]


Post New Thread Reply   
 
Thread Tools Display Modes
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 02-28-2015 , 21:54   Re: [CS:GO] Knife Swapper 1.3 [Updated 01-03-2015]
Reply With Quote #21

Version 1.3
* Auto respawning of knives from !takeknife command process on player_spawn instead of round_start.
* Added cvar
knifeswapper_flag which allows players with a matching flag to use the commands (eg. VIP only).
* Changed default settings so !takeknife can be used at anytime

This update is based on requests from
zapparncsgo
__________________
Neuro Toxin is offline
zapparncsgo
Senior Member
Join Date: Dec 2014
Old 03-09-2015 , 22:34   Re: [CS:GO] Knife Swapper 1.3 [Updated 01-03-2015]
Reply With Quote #22

you are doing some great work I will post future requests soon if I feel like something is needed!
zapparncsgo is offline
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 03-10-2015 , 04:35   Re: [CS:GO] Knife Swapper 1.3 [Updated 01-03-2015]
Reply With Quote #23

Thanks for your feedback. I'm looking forward to your requests
__________________
Neuro Toxin is offline
MrSmoke
Junior Member
Join Date: Sep 2012
Location: Australia
Old 03-15-2015 , 03:54   Re: [CS:GO] Knife Swapper 1.3 [Updated 01-03-2015]
Reply With Quote #24

Can you make it so if a player isn't holding a knife !resetknife won't give them one? I have a few maps on my server that players swap without knifes, but when they use reset it gives them one.

This seems to work for me

Code:
public Action:OnCommandResetKnife(client, args)
{
    if (!IsClientInGame(client))
        return Plugin_Handled;
        
    if (!IsPlayerAlive(client))
        return Plugin_Handled;
        
    TakeKnifeUserIds[client] = -1;
    
    new team = GetClientTeam(client);
    if (team != CS_TEAM_T && team != CS_TEAM_CT)
        return Plugin_Handled;
        
    new targetknife = GetPlayerWeaponSlot(client, CS_SLOT_KNIFE);
    if (targetknife != -1)
    {
        CS_DropWeapon(client, targetknife, false, true);
        AcceptEntityInput(targetknife, "Kill");
        
        //Give the player a knife only if they are holding one
        GivePlayerItem(client, "weapon_knife");
    }
    
    PrintToChat(client, "[SM] You knife has been reset");
    return Plugin_Handled;
}

Same goes for !takeknife. On maps that have ct with knife and t without knife, t's can use takeknife on a ct player and get a knife

Last edited by MrSmoke; 03-15-2015 at 08:35.
MrSmoke is offline
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 03-15-2015 , 16:33   Re: [CS:GO] Knife Swapper 1.3 [Updated 01-03-2015]
Reply With Quote #25

Quote:
Originally Posted by MrSmoke View Post
Can you make it so if a player isn't holding a knife !resetknife won't give them one? I have a few maps on my server that players swap without knifes, but when they use reset it gives them one.

This seems to work for me

Code:
public Action:OnCommandResetKnife(client, args)
{
    if (!IsClientInGame(client))
        return Plugin_Handled;
        
    if (!IsPlayerAlive(client))
        return Plugin_Handled;
        
    TakeKnifeUserIds[client] = -1;
    
    new team = GetClientTeam(client);
    if (team != CS_TEAM_T && team != CS_TEAM_CT)
        return Plugin_Handled;
        
    new targetknife = GetPlayerWeaponSlot(client, CS_SLOT_KNIFE);
    if (targetknife != -1)
    {
        CS_DropWeapon(client, targetknife, false, true);
        AcceptEntityInput(targetknife, "Kill");
        
        //Give the player a knife only if they are holding one
        GivePlayerItem(client, "weapon_knife");
    }
    
    PrintToChat(client, "[SM] You knife has been reset");
    return Plugin_Handled;
}

Same goes for !takeknife. On maps that have ct with knife and t without knife, t's can use takeknife on a ct player and get a knife
I'll add a convar for this as some players use it to get a knife on some surf maps that block spawning with knives.

Something like: knifeswapper_blockifnoknife

Give me a few days to make an update.
__________________
Neuro Toxin is offline
zapparncsgo
Senior Member
Join Date: Dec 2014
Old 03-22-2015 , 22:22   Re: [CS:GO] Knife Swapper 1.3 [Updated 01-03-2015]
Reply With Quote #26

message pops up with info how to use it (you can take players knife with !takeknife) and also make this so only people who have access to it see it ok? and maybe add a config file for it for easier management just a suggestion!

Last edited by zapparncsgo; 03-22-2015 at 22:23.
zapparncsgo is offline
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 03-25-2015 , 21:20   Re: [CS:GO] Knife Swapper 1.3 [Updated 01-03-2015]
Reply With Quote #27

Quote:
Originally Posted by Neuro Toxin View Post
I'll add a convar for this as some players use it to get a knife on some surf maps that block spawning with knives.

Something like: knifeswapper_blockifnoknife

Give me a few days to make an update.
I haven't forgot about your request. I've been busy setting up a new dedicated server.

I should have your feature done over the weekend
__________________
Neuro Toxin is offline
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 03-27-2015 , 21:35   Re: [CS:GO] Knife Swapper 1.4 [Updated 28-03-2015]
Reply With Quote #28

Version 1.4
* Added
knifeswapper_kniferequired to block all commands if the target(s) dont have a knife.
__________________
Neuro Toxin is offline
asdfxD
Veteran Member
Join Date: Apr 2011
Old 03-28-2015 , 19:12   Re: [CS:GO] Knife Swapper 1.4 [Updated 28-03-2015]
Reply With Quote #29

possible to hide the messages in chat? !takeknife USER, !igveknife USER
asdfxD is offline
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 03-28-2015 , 22:13   Re: [CS:GO] Knife Swapper 1.4 [Updated 28-03-2015]
Reply With Quote #30

Quote:
Originally Posted by asdfxD View Post
possible to hide the messages in chat? !takeknife USER, !igveknife USER
This is possible with an update.

I'll add a cvar like knifeswapper_hidecommands
__________________
Neuro Toxin 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 23:11.


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