enum svscmd_type { SV_CMD_CAN_IGNORE, SV_CMD_RELIABLE };
void (__fastcall* SV_GameSendServerCommand)(int clientNum, svscmd_type type, const char* text) { reinterpret_cast<decltype(SV_GameSendServerCommand)>(0x140C53270) };
struct Client
{
virtual void SV_SendServerCommand(svscmd_type type, const char* text) = 0;
// ...
};
Client** clients { reinterpret_cast<Client**>(0x146B07950) };
void ExampleUsages(int clientNum)
{
// If clientNum != -1, this function directly calls the virtuale function, if it's -1 it calls another function that loops through all Client's and calls
// the virtual function
SV_GameSendServerCommand(clientNum, svscmd_type::SV_CMD_RELIABLE, "...");
// or
clients[clientNum]->SV_SendServerCommand(svscmd_type::SV_CMD_RELIABLE, "...");
}


