aboooooose

This commit is contained in:
neon 2018-03-04 19:07:56 +01:00
parent 71f5acaaa0
commit 0a7f08b561

View File

@ -19,7 +19,7 @@ public Plugin myinfo =
name = "ForceInput",
author = "zaCade + BotoX",
description = "Allows admins to force inputs on entities. (ent_fire)",
version = "2.1",
version = "2.1.1",
url = ""
};
@ -79,6 +79,7 @@ public Action Command_ForceInputPlayer(int client, int args)
AcceptEntityInput(aTargetList[i], sArguments[1], aTargetList[i], aTargetList[i]);
ReplyToCommand(client, "[SM] Input successful.");
LogAction(client, -1, "\"%L\" used ForceInputPlayer on \"%L\": \"%s %s\"", client, aTargetList[i], sArguments[1], sArguments[2]);
}
return Plugin_Handled;
@ -107,6 +108,7 @@ public Action Command_ForceInput(int client, int args)
AcceptEntityInput(client, sArguments[1], client, client);
ReplyToCommand(client, "[SM] Input successful.");
LogAction(client, -1, "\"%L\" used ForceInput on himself: \"%s %s\"", client, sArguments[1], sArguments[2]);
}
else if(StrEqual(sArguments[0], "!target"))
{
@ -132,6 +134,12 @@ public Action Command_ForceInput(int client, int args)
AcceptEntityInput(entity, sArguments[1], client, client);
ReplyToCommand(client, "[SM] Input successful.");
char sClassname[64];
char sTargetname[64];
GetEntPropString(entity, Prop_Data, "m_iClassname", sClassname, sizeof(sClassname));
GetEntPropString(entity, Prop_Data, "m_iName", sTargetname, sizeof(sTargetname));
LogAction(client, -1, "\"%L\" used ForceInput on Entity \"%d\" - \"%s\" - \"%s\": \"%s %s\"", client, entity, sClassname, sTargetname, sArguments[1], sArguments[2]);
}
CloseHandle(hTrace);
}
@ -149,6 +157,12 @@ public Action Command_ForceInput(int client, int args)
AcceptEntityInput(entity, sArguments[1], client, client);
ReplyToCommand(client, "[SM] Input successful.");
char sClassname[64];
char sTargetname[64];
GetEntPropString(entity, Prop_Data, "m_iClassname", sClassname, sizeof(sClassname));
GetEntPropString(entity, Prop_Data, "m_iName", sTargetname, sizeof(sTargetname));
LogAction(client, -1, "\"%L\" used ForceInput on Entity \"%d\" - \"%s\" - \"%s\": \"%s %s\"", client, entity, sClassname, sTargetname, sArguments[1], sArguments[2]);
}
}
}
@ -172,6 +186,7 @@ public Action Command_ForceInput(int client, int args)
AcceptEntityInput(entity, sArguments[1], client, client);
ReplyToCommand(client, "[SM] Input successful.");
LogAction(client, -1, "\"%L\" used ForceInput on Entity \"%d\" - \"%s\" - \"%s\": \"%s %s\"", client, entity, sClassname, sTargetname, sArguments[1], sArguments[2]);
}
}
}
@ -188,4 +203,4 @@ public bool TraceRayFilter(int entity, int mask, any client)
return false;
return true;
}
}