Need Plugin AMXX
Posted: Thu Mar 21, 2013 8:50 am
Hi all,
I'm looking for someone who can make the automatic plugin, and move the AFK into spectator after 30 seconds.
I'm looking for someone who can make the automatic plugin, and move the AFK into spectator after 30 seconds.
Code: Select all
/*
* Send player to spectator
*/
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "AMXX_Spec"
#define VERSION "1.0"
#define AUTHOR "Vet(3TT3V)"
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_concmd("admin_spec", "playerspec", ADMIN_KICK, "<name or #userid> Send player to Spectator")
}
public playerspec(id, level, cid)
{
if (!cmd_access(id, level, cid, 2))
return PLUGIN_HANDLED
new arg[32]
read_argv(1, arg, 31)
new player = cmd_target(id, arg, 1)
if (!player)
return PLUGIN_HANDLED
new curteam[16]
get_user_team(player, curteam, 15)
if (curteam[0])
engclient_cmd(player, "jointeam", "3")
return PLUGIN_HANDLED
}