roflmuffin / CounterStrikeSharp

CounterStrikeSharp allows you to write server plugins in C# for Counter-Strike 2/Source2/CS2
https://docs.cssharp.dev
Other
769 stars 119 forks source link

[Need Help] How to get Players? #484

Closed ZWqPY closed 3 months ago

ZWqPY commented 3 months ago

I was trying to find in the API how to get players on the server, or to be more precise, terrorists and counter-terrorists. However, it didn't work out for me. Can you help with this issue?

image

unqxl commented 3 months ago

Use Utilities.GetPlayers() instead.

ZWqPY commented 3 months ago

thx!