Raised This Month: $ Target: $400
 0% 

Solved Get weapon's entity id, from weapon ID


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
GasmoN
Member
Join Date: Jul 2014
Old 12-08-2020 , 17:29   Get weapon's entity id, from weapon ID
Reply With Quote #1

At the end of every round, I want to loop through all players and their weapons. And remove weapons flagged with certial flag. For that, I need entity ID from all their weapons, so how can I retreive it?

PHP Code:
    new i;
    new 
weapons[32], iWeapons
    get_user_weapons
(idweaponsiWeapons)
    
    for (
0<= iWeaponsi++)
    {      
             
// How to get Entity ID here for all weapons that player have in inventory?
            // Something like new iEnt = get_weapon_ent_id(iWeapons[i])
    


Last edited by GasmoN; 12-09-2020 at 11:17. Reason: Solved
GasmoN is offline
 


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 20:26.


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