View Single Post
Maxximou5
AlliedModders Donor
Join Date: Feb 2013
Old 06-16-2021 , 12:06   Re: [CS:GO] Crash after giving weapon_healthshot
Reply With Quote #2

You should get a crash log of what is happening in case it isn't directly that action, from Accelerator. However, from my experience, you need to use RequestFrame or a timer to give healthshots with the best results. Not sure if it remains the same, but it was either crashing or not giving the item. I setup my plugins to use the following -
PHP Code:
RequestFrame(Frame_GiveHealthshotGetClientSerial(client));

public 
void Frame_GiveHealthshot(any serial)
{
    
int client GetClientFromSerial(serial)
    if (
client && IsClientInGame(client) && IsPlayerAlive(client))
    {
        
GivePlayerItem(client"weapon_healthshot");
    }


Last edited by Maxximou5; 06-16-2021 at 12:09.
Maxximou5 is offline