hi i want block clientmod bypass with this plugin but me cant read client console
thats my
thats my
C++:
new String:command_check[128];
public OnPluginStart()
{
FormatEx(command_check, sizeof(command_check), "setinfo e_c4_timer 1");
HookUserMessage(GetUserMessageId("TextMsg"), MessageHandler, true);
}
public OnClientPutInServer(client)
{
CreateTimer(0.1, CLientInfoChecker, GetClientUserId(client));
}
public Action:CLientInfoChecker(Handle:timer, any:userid)
{
new client = GetClientOfUserId(userid);
if(client)
{
Check(client);
}
}
Check(client)
{
new Handle:KV = CreateKeyValues("ClientMod_Bypass");
KvSetString(KV, "cmd", command_check);
ShowVGUIPanel(client, "info", KV);
CloseHandle(KV);
}
public Action:MessageHandler(UserMsg:msg_id, Handle:bf, const players[], playersNum, bool:reliable, bool:init)
{
new String:message[256];
BfReadString(bf, message, sizeof(message));
new String:msg[256];
Format(msg, sizeof(msg), "%s", message[1]);
TrimString(msg);
if (StrEqual(msg, "Convar e_c4_timer is already registered but not as user info value"))
{
PrintToChatAll("User Use Clientmod");
}
else
PrintToChatAll("User Old css player");
return Plugin_Handled;
}