Raised This Month: $ Target: $400
 0% 

Plugin to move ppl to spec?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
pulpy
Senior Member
Join Date: Oct 2005
Location: Brights Grove, ON
Old 12-24-2005 , 12:55   Plugin to move ppl to spec?
Reply With Quote #1

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.
__________________
pulpy is offline
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 12-24-2005 , 13:00  
Reply With Quote #2

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.
Brad is offline
pulpy
Senior Member
Join Date: Oct 2005
Location: Brights Grove, ON
Old 12-24-2005 , 13:04  
Reply With Quote #3

ya i found those, but was just needing the admin command as well
__________________
pulpy is offline
SnoW
Veteran Member
Join Date: Oct 2008
Location: Finland WisdomNuggets: 8
Old 10-30-2008 , 15:02   Re: Plugin to move ppl to spec?
Reply With Quote #4

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.
SnoW is offline
Send a message via MSN to SnoW
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 10-30-2008 , 17:53   Re: Plugin to move ppl to spec?
Reply With Quote #5

Use amxmodmenu, 4.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
DruGzOG
Veteran Member
Join Date: Nov 2007
Location: Unknown
Old 10-30-2008 , 18:02   Re: Plugin to move ppl to spec?
Reply With Quote #6

Also if you have a server with amx_super...

Amx_transfer <playername> <Team>

Ex:
Amx_transfer "levin" "@spec"
__________________
DruGzOG is offline
Send a message via AIM to DruGzOG
HamoOodi
Senior Member
Join Date: Dec 2005
Old 10-30-2008 , 18:09   Re: Plugin to move ppl to spec?
Reply With Quote #7

Quote:
Originally Posted by connorr View Post
Use amxmodmenu, 4.
HamoOodi is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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