destoer / Cs2Jailbreak

WIP Jailbreak plugin for CS2
GNU General Public License v3.0
33 stars 15 forks source link

Added drop weapon hook #46

Open Interesting-exe opened 5 months ago

destoer commented 5 months ago

Utilities.GetPlayerFromSteamId(itemServices.Pawn.Value.Controller.Value)

Quite sure itemServices.Pawn.Value.Controller.Value is what you want already? also check its valid :D

Interesting-exe commented 5 months ago

the controller in itemServices.Pawn... is a CBaseController and FindLR uses CCSPlayerController. you can probably cast it but i couldn't be bother to check it when i coded this