AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   Plugin to move ppl to spec? (https://forums.alliedmods.net/showthread.php?t=22334)

pulpy 12-24-2005 12:55

Plugin to move ppl to spec?
 
Hi, i havent seen one around, and im sure its easy, but is there a plugin out there that allows an admin to move someone to spec? Like theres team to terror, and team to counter-terror, but i havent seen one for spec. Just wondered cause if someone goes afk for a bit u can move them to spec, and let them be for a bit until u need to free some space on the server or w/e.

Brad 12-24-2005 13:00

There are some plugins that will automatically do this. I'm not sure if there's any (though it seems like there are) that will allow you to do it on command.

pulpy 12-24-2005 13:04

ya i found those, but was just needing the admin command as well

SnoW 10-30-2008 15:02

Re: Plugin to move ppl to spec?
 
Code:

#include <amxmodx>
#include <cstrike>
#include <amxmisc>

public plugin_init()
{
 register_concmd("spec_all", "specall", ADMIN_BAN);
 register_concmd("spec_player","spec_player", ADMIN_BAN, "<nick>");
}

public spec_player(id, level, cid)
{
 if (!cmd_access(id, level, cid,2))
        return PLUGIN_HANDLED
    new arg[32], name2[32];
  get_user_name(id,name2,31);
      new player = cmd_target(id,arg,7);
      if (!player)
  return PLUGIN_HANDLED
 cs_set_user_team(player, 3, 0);
}
public specall()
{
 new players[32], num
 get_players(players, num)
 
 new player;
 for(new i = 0; i < num; i++)
 {
  player = players[i]
  cs_set_user_team(player, 3, 0);
 
 }
}

Untested. You maybe want to edit the usage to ADMIN_KICK or something.

ConnorMcLeod 10-30-2008 17:53

Re: Plugin to move ppl to spec?
 
Use amxmodmenu, 4.

DruGzOG 10-30-2008 18:02

Re: Plugin to move ppl to spec?
 
Also if you have a server with amx_super...

Amx_transfer <playername> <Team>

Ex:
Amx_transfer "levin" "@spec"

HamoOodi 10-30-2008 18:09

Re: Plugin to move ppl to spec?
 
Quote:

Originally Posted by connorr (Post 707766)
Use amxmodmenu, 4.



All times are GMT -4. The time now is 20:07.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.