mirror of
https://github.com/roflmuffin/CounterStrikeSharp.git
synced 2025-12-07 16:36:35 -08:00
17 lines
511 B
C#
17 lines
511 B
C#
using System;
|
|
using CounterStrikeSharp.API.Modules.Memory;
|
|
|
|
namespace CounterStrikeSharp.API.Core;
|
|
|
|
public partial class CBasePlayerPawn
|
|
{
|
|
/// <summary>
|
|
/// Force player suicide
|
|
/// </summary>
|
|
/// <param name="explode"></param>
|
|
/// <param name="force"></param>
|
|
public void CommitSuicide(bool explode, bool force)
|
|
{
|
|
VirtualFunction.CreateVoid<IntPtr, bool, bool>(Handle, GameData.GetOffset("CBasePlayerPawn_CommitSuicide"))(Handle, explode, force);
|
|
}
|
|
} |