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

How to get all the player a weapon?


Post New Thread Reply   
 
Thread Tools Display Modes
Whai
Senior Member
Join Date: Jul 2018
Old 07-11-2019 , 07:33   Re: How to get all the player a weapon?
Reply With Quote #11

PHP Code:
if(IsClientInGame(i)
{
     if(
IsPlayerAlive(i)
     {
     }

__________________
Whai is offline
hiiamu
Member
Join Date: Nov 2018
Old 08-20-2019 , 10:27   Re: How to get all the player a weapon?
Reply With Quote #12

PHP Code:
stock SetReserveAmmo(clientammo)
{
    new 
weapon GetEntPropEnt(clientProp_Data"m_hActiveWeapon");
    if(
weapon 1) return;
    
    new 
ammotype GetEntProp(weaponProp_Send"m_iPrimaryAmmoType");
    if(
ammotype == -1) return;
    
    
SetEntProp(clientProp_Send"m_iAmmo"ammo_ammotype);

When you call this confirm their m_hActiveWeapon is what you want then call SetReserveAmmo(client, <amt>)
hiiamu 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 19:08.


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