Quote:
Originally Posted by Dr. McKay
This plugin made me wonder, is it possible to add the "Valve Employee-ness" condition to players via SourceMod? I know there's already PowerPlay plugins and stuff so it'd be kinda pointless, but It'd be fun once or twice to use hidden Valve HAX commands.
|
Quote:
Originally Posted by ILOVEPIE
Um that is impossible
|
hardly
Code:
#include <sourcemod>
#include <tf2>
public OnPluginStart()
{
RegConsoleCmd("condump_on", condump_on);
RegConsoleCmd("condump_off", condump_off);
}
public Action:condump_on(client, argc)
{
if (client > 0 && IsClientInGame(client)) {
TF2_SetPlayerPowerPlay(client, true);
}
return Plugin_Handled;
}
public Action:condump_off(client, argc)
{
if (client > 0 && IsClientInGame(client)) {
TF2_SetPlayerPowerPlay(client, false);
}
return Plugin_Handled;
}
That's all it does short of a steamid check and a console print.