AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting (https://forums.alliedmods.net/forumdisplay.php?f=107)
-   -   Give more than 1 item to a Player (https://forums.alliedmods.net/showthread.php?t=295144)

TheDS1337 03-17-2017 13:35

Give more than 1 item to a Player
 
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

Weetabix 03-17-2017 13:48

Re: Give more than 1 item to a Player
 
I've got a hunch that what you're trying to do is practically impossible with sourcemod.

sdz 03-17-2017 14:12

Re: Give more than 1 item to a Player
 
You could do this in AMX if i recall correctly but then again I'd be dating myself a little over a decade

ESK0 03-17-2017 14:32

Re: Give more than 1 item to a Player
 
:) You can not have more than one primary weapon :)

TheDS1337 03-17-2017 16:00

Re: Give more than 1 item to a Player
 
I know that I cannot have it, that's why I'm asking for a way to remove that limit lol

Maxximou5 03-17-2017 16:04

Re: Give more than 1 item to a Player
 
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.

TheDS1337 03-17-2017 16:33

Re: Give more than 1 item to a Player
 
Quote:

Originally Posted by Maxximou5 (Post 2504481)
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

Maxximou5 03-17-2017 17:44

Re: Give more than 1 item to a Player
 
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 03-17-2017 18:57

Re: Give more than 1 item to a Player
 
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

TheDS1337 03-18-2017 03:30

Re: Give more than 1 item to a Player
 
Oh.. Thank you for sharing this! I will test it as soon as I got back home, again Thank you


All times are GMT -4. The time now is 08:50.

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