Raised This Month: $ Target: $400
 0% 

Get player and weapon id in WeapPickup Event


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Cuttlas
Senior Member
Join Date: Jan 2015
Old 12-26-2023 , 00:01   Get player and weapon id in WeapPickup Event
Reply With Quote #1

register_event("WeapPickup", "weapon_pickup", "b");

how to get a player and weapon ID in the WeapPickup Event?

public weapon_pickup( iEntity )

what is iEntity? I tested it as player ID, but with no success, I tested it as weapon ID and tried to get the player ID like this: new id = pev( iEntity , pev_owner ); no success.

thank you, brothers
__________________
To Infinity n Beyond

Last edited by Cuttlas; 12-26-2023 at 02:33.
Cuttlas 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 20:03.


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