Raised This Month: $ Target: $400
 0% 

Solved [L4D2]Exclude projectiles that have been thrown


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
HarryPotter
Veteran Member
Join Date: Sep 2017
Location: Taiwan, Asia
Old 03-29-2024 , 19:30   Re: [L4D2]Exclude projectiles that have been thrown
Reply With Quote #7

Found more efficient way today, thanks to Forgetest

PHP Code:
    int grenade GetPlayerWeaponSlot(client2);
    
int iPrimaryAmmoType GetEntProp(grenadeProp_Send"m_iPrimaryAmmoType");
    
int iAmmo GetEntData(clientFindSendPropInfo("CCSPlayer""m_iAmmo") + iPrimaryAmmoType*4);
    
PrintToChatAll("m_iAmmo %d"iAmmo);
    if(
iAmmo == 0)
    {
        
PrintToChatAll("%d has been thrown"grenade);
    } 
__________________
HarryPotter is offline
 



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:35.


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