Page 1 of 1

Need Plugin AMXX

Posted: Thu Mar 21, 2013 8:50 am
by Bibop_^
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
}

Re: Need Plugin AMXX

Posted: Thu Mar 21, 2013 9:56 am
by acetamino

Re: Need Plugin AMXX

Posted: Thu Mar 21, 2013 9:56 am
by acetamino
also Im pretty sure these types of plugins are illegal on match servers

Re: Need Plugin AMXX

Posted: Thu Mar 21, 2013 9:59 am
by Bibop_^
not for a match server, for a public server 32slots.

Re: Need Plugin AMXX

Posted: Thu Mar 21, 2013 5:37 pm
by dogfire
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.