aboooooose
This commit is contained in:
parent
71f5acaaa0
commit
0a7f08b561
@ -19,7 +19,7 @@ public Plugin myinfo =
|
|||||||
name = "ForceInput",
|
name = "ForceInput",
|
||||||
author = "zaCade + BotoX",
|
author = "zaCade + BotoX",
|
||||||
description = "Allows admins to force inputs on entities. (ent_fire)",
|
description = "Allows admins to force inputs on entities. (ent_fire)",
|
||||||
version = "2.1",
|
version = "2.1.1",
|
||||||
url = ""
|
url = ""
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -79,6 +79,7 @@ public Action Command_ForceInputPlayer(int client, int args)
|
|||||||
|
|
||||||
AcceptEntityInput(aTargetList[i], sArguments[1], aTargetList[i], aTargetList[i]);
|
AcceptEntityInput(aTargetList[i], sArguments[1], aTargetList[i], aTargetList[i]);
|
||||||
ReplyToCommand(client, "[SM] Input successful.");
|
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;
|
return Plugin_Handled;
|
||||||
@ -107,6 +108,7 @@ public Action Command_ForceInput(int client, int args)
|
|||||||
|
|
||||||
AcceptEntityInput(client, sArguments[1], client, client);
|
AcceptEntityInput(client, sArguments[1], client, client);
|
||||||
ReplyToCommand(client, "[SM] Input successful.");
|
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"))
|
else if(StrEqual(sArguments[0], "!target"))
|
||||||
{
|
{
|
||||||
@ -132,6 +134,12 @@ public Action Command_ForceInput(int client, int args)
|
|||||||
|
|
||||||
AcceptEntityInput(entity, sArguments[1], client, client);
|
AcceptEntityInput(entity, sArguments[1], client, client);
|
||||||
ReplyToCommand(client, "[SM] Input successful.");
|
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);
|
CloseHandle(hTrace);
|
||||||
}
|
}
|
||||||
@ -149,6 +157,12 @@ public Action Command_ForceInput(int client, int args)
|
|||||||
|
|
||||||
AcceptEntityInput(entity, sArguments[1], client, client);
|
AcceptEntityInput(entity, sArguments[1], client, client);
|
||||||
ReplyToCommand(client, "[SM] Input successful.");
|
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);
|
AcceptEntityInput(entity, sArguments[1], client, client);
|
||||||
ReplyToCommand(client, "[SM] Input successful.");
|
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]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user