You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RegisterEventHandler<EventBulletImpact>((@event,info)=>{varplayer= @event.Userid;if(player==null||!player.IsValid)return HookResult.Continue; player.PrintToChat($"123");// doesn't work player.PrintToCenterAlert("123");// doesn't work player.PrintToCenter("123");// doesn't work player.PrintToConsole("123");// works player.PrintToCenterHtml("123");// works player.PlayerPawn.Value!.Teleport(new Vector(@event.X, @event.Y, @event.Z), QAngle.Zero, Vector.Zero);// works Console.WriteLine($"{@event.X}, {@event.Y}, {@event.Z}");// worksreturn HookResult.Continue;});RegisterEventHandler<EventItemPickup>((@event,info)=>{varplayer= @event.Userid;if(player==null||!player.IsValid)return HookResult.Continue; player.PrintToChat($"123");// works player.PrintToCenterAlert("123");// works player.PrintToCenter("123");// works player.PrintToConsole("123");// works player.PrintToCenterHtml("123");// works//player.PlayerPawn.Value!.Teleport(new Vector(@event.X, @event.Y, @event.Z), QAngle.Zero, Vector.Zero); // works//Console.WriteLine($"{@event.X}, {@event.Y}, {@event.Z}"); // worksreturn HookResult.Continue;});
CounterStrikeSharp was created and is maintained by Michael "roflmuffin" Wilson.
Counter-Strike Sharp uses code borrowed from SourceMod, Source.Python, FiveM, Saul Rennison, source2gen and CS2Fixes.
See ACKNOWLEDGEMENTS.md for more information.
Current API Version: v287 (1.0.287+6cf124b)
Metamod:Source Version Information
Metamod:Source version 2.0.0-dev+1314
The text was updated successfully, but these errors were encountered:
CounterStrikeSharp was created and is maintained by Michael "roflmuffin" Wilson.
Counter-Strike Sharp uses code borrowed from SourceMod, Source.Python, FiveM, Saul Rennison, source2gen and CS2Fixes.
See ACKNOWLEDGEMENTS.md for more information.
Current API Version: v287 (1.0.287+6cf124b)
Metamod:Source Version Information
Metamod:Source version 2.0.0-dev+1314
The text was updated successfully, but these errors were encountered: