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

Solved [CSGO] ItemDrops event


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Flashkatt
Junior Member
Join Date: Jun 2021
Old 06-02-2021 , 02:38   [CSGO] ItemDrops event
Reply With Quote #1

Solved:

PHP Code:
public void OnPluginStart()
{
    
HookUserMessage(GetUserMessageId("SendPlayerItemDrops"), Event_Dropstrue);
}

public 
Action Event_Drops(UserMsg msg_idProtobuf pb, const players[], playersNumbool reliablebool init)
{
    if(
reliable)
    {
        
PrintToServer("SendPlayerItemDrops event");
    }
    return 
Plugin_Continue;


Last edited by Flashkatt; 06-05-2021 at 04:53. Reason: solved
Flashkatt is offline
BeepIsla
Member
Join Date: Mar 2020
Location: Germany
Old 06-03-2021 , 10:00   Re: Drops? item_found
Reply With Quote #2

No event is used for this, you must use "SendPlayerItemDrops" usermessage protobuf
BeepIsla is offline
Flashkatt
Junior Member
Join Date: Jun 2021
Old 06-03-2021 , 10:34   Re: Drops? item_found
Reply With Quote #3

Editing the original post to solved

Last edited by Flashkatt; 06-05-2021 at 04:51. Reason: solved
Flashkatt is offline
8guawong
AlliedModders Donor
Join Date: Dec 2013
Location: BlackMarke7
Old 06-05-2021 , 12:14   Re: [CSGO] ItemDrops event
Reply With Quote #4

Quote:
Originally Posted by Flashkatt View Post
Solved:

PHP Code:
public void OnPluginStart()
{
    
HookUserMessage(GetUserMessageId("SendPlayerItemDrops"), Event_Dropstrue);
}

public 
Action Event_Drops(UserMsg msg_idProtobuf pb, const players[], playersNumbool reliablebool init)
{
    if(
reliable)
    {
        
PrintToServer("SendPlayerItemDrops event");
    }
    return 
Plugin_Continue;

could you log what was dropped with this method?

i was going to recommend you to use https://forums.alliedmods.net/showpo...9&postcount=10 before you marked the thread as solved
__________________
8guawong is offline
Flashkatt
Junior Member
Join Date: Jun 2021
Old 06-06-2021 , 02:24   Re: [CSGO] ItemDrops event
Reply With Quote #5

Quote:
Originally Posted by 8guawong View Post
could you log what was dropped with this method?
Yes, you are able to extract the Protobuf data and log it or do whatever you want.
Flashkatt 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 13:06.


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