Code:
#pragma semicolon 1
#include <sourcemod>
#include <sdktools>
public Action:Command_Ent(Client, Arguments)
{
new Ent;
Ent = GetClientAimTarget(Client, false);
PrintToChatAll("Ent %d", Ent);
}
public OnPluginStart()
{
RegConsoleCmd("ent", Command_Ent);
}
When I run the "ent" command in-game in TF2 it returns as an error because the Client is 0. When it *Should* be a player id, i.e., 1.
I just took this into cs:s and it works fine, returning 1. And it works in sourcemod 1.0.0 on tf2, but not in 1.0.3.
__________________