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

Give more than 1 item to a Player


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
TheDS1337
Veteran Member
Join Date: Jun 2012
Old 03-17-2017 , 13:35   Give more than 1 item to a Player
Reply With Quote #1

Hey, is there any way to bypass the items limitation in CS:GO ? for example a player cant hold more than one rifle, more than one pistol etc..

Or is it client-sided?

I'm trying something like this:
Code:
GivePlayerItem(client, "weapon_awp");
GivePlayerItem(client, "weapon_m4a1");
but it doesnt work :/

I tried setting m_bPreventWeaponPickup to false like this:
Code:
SetEntProp(client, Prop_Data, "m_bPreventWeaponPickup", false);
but it doesnt work as well

Last edited by TheDS1337; 03-17-2017 at 13:38.
TheDS1337 is offline
Weetabix
Member
Join Date: Feb 2017
Location: United Kingdom
Old 03-17-2017 , 13:48   Re: Give more than 1 item to a Player
Reply With Quote #2

I've got a hunch that what you're trying to do is practically impossible with sourcemod.
Weetabix is offline
sdz
Senior Member
Join Date: Feb 2012
Old 03-17-2017 , 14:12   Re: Give more than 1 item to a Player
Reply With Quote #3

You could do this in AMX if i recall correctly but then again I'd be dating myself a little over a decade
sdz is offline
ESK0
BANNED
Join Date: May 2014
Location: Czech Republic
Old 03-17-2017 , 14:32   Re: Give more than 1 item to a Player
Reply With Quote #4

You can not have more than one primary weapon
ESK0 is offline
TheDS1337
Veteran Member
Join Date: Jun 2012
Old 03-17-2017 , 16:00   Re: Give more than 1 item to a Player
Reply With Quote #5

I know that I cannot have it, that's why I'm asking for a way to remove that limit lol
TheDS1337 is offline
Maxximou5
AlliedModders Donor
Join Date: Feb 2013
Old 03-17-2017 , 16:04   Re: Give more than 1 item to a Player
Reply With Quote #6

No but you can do a hacky way around it with SourceMod if you're interested in that.
However, I could never figure out a way to remove the limitation itself with SM or without.
Maxximou5 is offline
TheDS1337
Veteran Member
Join Date: Jun 2012
Old 03-17-2017 , 16:33   Re: Give more than 1 item to a Player
Reply With Quote #7

Quote:
Originally Posted by Maxximou5 View Post
No but you can do a hacky way around it with SourceMod if you're interested in that.
However, I could never figure out a way to remove the limitation itself with SM or without.
Show me this way
TheDS1337 is offline
Maxximou5
AlliedModders Donor
Join Date: Feb 2013
Old 03-17-2017 , 17:44   Re: Give more than 1 item to a Player
Reply With Quote #8

Simply put, you need to set an array for each slot and the player cycles through by pressing the slot button.
This was when I was attempting to get dual wielding to work, which I never did.

If I can find the code I will post it, but I really have no idea where it went.
Maxximou5 is offline
Maxximou5
AlliedModders Donor
Join Date: Feb 2013
Old 03-17-2017 , 18:57   Re: Give more than 1 item to a Player
Reply With Quote #9

Found it! However...
I was wrong about how the method works, but it's something to go off of I guess.
Spoiler

Here's it in action.
https://puu.sh/uNFAm/f70f165f90.gif
Maxximou5 is offline
TheDS1337
Veteran Member
Join Date: Jun 2012
Old 03-18-2017 , 03:30   Re: Give more than 1 item to a Player
Reply With Quote #10

Oh.. Thank you for sharing this! I will test it as soon as I got back home, again Thank you
TheDS1337 is offline
Reply


Thread Tools
Display Modes

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 05:09.


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