Hello,
I'm working on an extension to my plugin that allows admins to teleport to any info_target, by way of "sm_teleloc adminRoom" if adminRoom was the name of the info_target.
I am rather new to sourcemod coding, and have gotten a knack for it so far. But I'm still clueless with entity controlling commands.
Code:
public Action:Command_GotoLoc(client, args)
{
new index = -1;
while ((index = FindEntityByClassname(index, "info_target")) != -1)
{
}
return Plugin_Handled;
}
I get that the command in there will cycle through every info_target, i just need to have it check its name against the arg1 value, and if true, teleport (I know how to do the argument checking and teleporting, mainly i need the ability to find a name off of an entity index)
Thanks!