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

GivePlayerItem without ammo?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ReyZ
Junior Member
Join Date: Oct 2020
Old 06-22-2021 , 18:25   GivePlayerItem without ammo?
Reply With Quote #1

Code:
GivePlayerItem(param1, "weapon_usp");
Gives player USP with 12/100 how can i disable that?
ReyZ is offline
little_froy
Senior Member
Join Date: May 2021
Old 06-22-2021 , 21:00   Re: GivePlayerItem without ammo?
Reply With Quote #2

give and then set ammo to 0 ?
i use to set pistol clip in L4D2, but i didn't try set backup ammo cause the ammo are infinity in L4D2 of pistol.
look at the code, it sets ammo of many weapons.
Attached Files
File Type: sp Get Plugin or Get Source (l4d_multiple_equipment_final.sp - 56 views - 58.9 KB)

Last edited by little_froy; 06-22-2021 at 21:07.
little_froy is offline
ReyZ
Junior Member
Join Date: Oct 2020
Old 06-23-2021 , 12:48   Re: GivePlayerItem without ammo?
Reply With Quote #3

I found it. I just download smlib, and boom!
PHP Code:
#include <smlib/clients> 
PHP Code:
Client_GiveWeaponAndAmmo(param1"weapon_usp"true0); 

Last edited by ReyZ; 06-23-2021 at 12:49.
ReyZ is offline
little_froy
Senior Member
Join Date: May 2021
Old 06-23-2021 , 23:50   Re: GivePlayerItem without ammo?
Reply With Quote #4

Quote:
Originally Posted by ReyZ View Post
I found it. I just download smlib, and boom!
PHP Code:
#include <smlib/clients> 
PHP Code:
Client_GiveWeaponAndAmmo(param1"weapon_usp"true0); 
the lib is out of date, no maintian these 4 years. maybe some issus.
you should get the code from source how it works internal, but not use directly the old lib.

Last edited by little_froy; 06-23-2021 at 23:52.
little_froy 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 15:20.


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