Nevermind. I think I figured it out on my own. I have no idea if it was the most optimal way, as I'm very green at coding in sourcemod. It seems to work though. I just took the existing "sm_bring" command and modified it.
If there's anything major wrong, someone let me know. Otherwise, it's working ok.
Changes:
Add the following line to OnPluginStart():
Code:
RegAdminCmd("sb_bring", Command_SBBring, ADMFLAG_SLAY,"Teleport bots to you");
Add the following function:
Code:
public Action:Command_SBBring(Client,args)
{
//Declare:
decl MaxPlayers
new Float:TeleportOrigin[3];
new Float:PlayerOrigin[3];
MaxPlayers = GetMaxClients();
for(new X = 1; X <= MaxPlayers; X++)
{
//Connected:
if(!IsClientConnected(X)) continue;
//Ignore Humans:
if(!IsFakeClient(X)) continue;
//Ignore All but team Survivor
if(GetClientTeam(X) != 2 ) continue;
GetCollisionPoint(Client, PlayerOrigin);
//Math
TeleportOrigin[0] = PlayerOrigin[0];
TeleportOrigin[1] = PlayerOrigin[1];
TeleportOrigin[2] = (PlayerOrigin[2] + 4);
//Teleport
TeleportEntity(X, TeleportOrigin, NULL_VECTOR, NULL_VECTOR);
}
return Plugin_Handled;
}