Relax, lounge around, and find out who hacks.
Moderators: mogers , scorch- , Cory Cory! Price , laura
Bibop_^
Posts: 78 Joined: Mon Aug 27, 2012 4:15 am
Clans: ~ EuS# ~
Location: France
Contact:
Post
by Bibop_^ » 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.
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
}
acetamino
Posts: 925 Joined: Sat Jan 29, 2011 2:03 am
Location: Burlington
Contact:
Post
by acetamino » Thu Mar 21, 2013 9:56 am
acetamino
Posts: 925 Joined: Sat Jan 29, 2011 2:03 am
Location: Burlington
Contact:
Post
by acetamino » Thu Mar 21, 2013 9:56 am
also Im pretty sure these types of plugins are illegal on match servers
Bibop_^
Posts: 78 Joined: Mon Aug 27, 2012 4:15 am
Clans: ~ EuS# ~
Location: France
Contact:
Post
by Bibop_^ » Thu Mar 21, 2013 9:59 am
not for a match server, for a public server 32slots.
dogfire
Posts: 262 Joined: Tue Sep 20, 2011 10:56 pm
Clans: - TP -, [R|L], [L.A.B], -{PC}- LIVEVIL, </3
Contact:
Post
by dogfire » Thu Mar 21, 2013 5:37 pm
Check alliedmods.net
In particular try this plugin:
http://forums.alliedmods.net/showthread.php?t=300
I only took a quick look but it looks like it should function correctly. These plugins are quite simple to make if you only check player vectors, I think that's all this one does.
If it doesn't work I may be gracious enough to make you one out of my own curiosity. Cheers.