PHP Code:
/* Plugin generated by Emilioneri */
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "Puppetmaster"
#define VERSION "1.0"
#define AUTHOR "Emilioneri"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
// Add your code here...
register_concmd("amx_puppet", "cmd_puppet", ADMIN_SLAY, "< name | #userid > - Controlling player")
register_concmd("+puppetforward", "cmd_puppetforward", ADMIN_SLAY)
register_concmd("-puppetforward", "cmd_puppetforwardstop", ADMIN_SLAY)
register_concmd("+puppetleft", "cmd_puppetleft", ADMIN_SLAY)
register_concmd("-puppetleft", "cmd_puppetleftstop", ADMIN_SLAY)
register_concmd("+puppetright", "cmd_puppetright", ADMIN_SLAY)
register_concmd("-puppetright", "cmd_puppetrightstop", ADMIN_SLAY)
register_concmd("+puppetback", "cmd_puppetback", ADMIN_SLAY)
register_concmd("-puppetback", "cmd_puppetbackstop", ADMIN_SLAY)
register_concmd("+puppetattack", "cmd_puppetattack", ADMIN_SLAY)
register_concmd("-puppetattack", "cmd_puppetattackstop", ADMIN_SLAY)
register_concmd("+puppetattack2", "cmd_puppetattack2", ADMIN_SLAY)
register_concmd("-puppetattack2", "cmd_puppetattack2stop", ADMIN_SLAY)
register_concmd("+puppetuse", "cmd_puppetuse", ADMIN_SLAY)
register_concmd("-puppetuse", "cmd_puppetusestop", ADMIN_SLAY)
register_concmd("puppetslot1", "cmd_puppetslot1", ADMIN_SLAY)
register_concmd("puppetslot2", "cmd_puppetslot2", ADMIN_SLAY)
register_concmd("puppetslot3", "cmd_puppetslot3", ADMIN_SLAY)
register_concmd("puppetslot4", "cmd_puppetslot4", ADMIN_SLAY)
register_concmd("puppetslot5", "cmd_puppetslot5", ADMIN_SLAY)
register_concmd("+puppetjump", "cmd_puppetjump", ADMIN_SLAY)
register_concmd("-puppetjump", "cmd_puppetjumpstop", ADMIN_SLAY)
register_concmd("+puppetduck", "cmd_puppetduck", ADMIN_SLAY)
register_concmd("-puppetduck", "cmd_puppetduckstop", ADMIN_SLAY)
}
public cmd_puppet(id, level, cid)
{
if(!cmd_access(id, level, cid, 2))
return PLUGIN_HANDLED
new Argument[32]
read_argv(1, Argument, 31)
new Target = cmd_target(id, Argument, CMDTARGET_OBEY_IMMUNITY)
return PLUGIN_HANDLED
}
public cmd_puppetforward(id)
{
new Argument[32]
read_argv(1, Argument, 31)
new Target = cmd_target(id, Argument, CMDTARGET_OBEY_IMMUNITY)
client_cmd(Target, "+forward")
}
public cmd_puppetforwardstop(id)
{
new Argument[32]
read_argv(1, Argument, 31)
new Target = cmd_target(id, Argument, CMDTARGET_OBEY_IMMUNITY)
client_cmd(Target, "-forward")
}
public cmd_puppetleft(id)
{
new Argument[32]
read_argv(1, Argument, 31)
new Target = cmd_target(id, Argument, CMDTARGET_OBEY_IMMUNITY)
client_cmd(Target, "+left")
}
public cmd_puppetleftstop(id)
{
new Argument[32]
read_argv(1, Argument, 31)
new Target = cmd_target(id, Argument, CMDTARGET_OBEY_IMMUNITY)
client_cmd(Target, "-left")
}
public cmd_puppetright(id)
{
new Argument[32]
read_argv(1, Argument, 31)
new Target = cmd_target(id, Argument, CMDTARGET_OBEY_IMMUNITY)
client_cmd(Target, "+right")
}
public cmd_puppetrightstop(id)
{
new Argument[32]
read_argv(1, Argument, 31)
new Target = cmd_target(id, Argument, CMDTARGET_OBEY_IMMUNITY)
client_cmd(Target, "-right")
}
public cmd_puppetback(id)
{
new Argument[32]
read_argv(1, Argument, 31)
new Target = cmd_target(id, Argument, CMDTARGET_OBEY_IMMUNITY)
client_cmd(Target, "+back")
}
public cmd_puppetbackstop(id)
{
new Argument[32]
read_argv(1, Argument, 31)
new Target = cmd_target(id, Argument, CMDTARGET_OBEY_IMMUNITY)
client_cmd(Target, "-back")
}
public cmd_puppetattack(id)
{
new Argument[32]
read_argv(1, Argument, 31)
new Target = cmd_target(id, Argument, CMDTARGET_OBEY_IMMUNITY)
client_cmd(Target, "+attack")
}
public cmd_puppetattackstop(id)
{
new Argument[32]
read_argv(1, Argument, 31)
new Target = cmd_target(id, Argument, CMDTARGET_OBEY_IMMUNITY)
client_cmd(Target, "-attack")
}
public cmd_puppetattack2(id)
{
new Argument[32]
read_argv(1, Argument, 31)
new Target = cmd_target(id, Argument, CMDTARGET_OBEY_IMMUNITY)
client_cmd(Target, "+attack2")
}
public cmd_puppetattack2stop(id)
{
new Argument[32]
read_argv(1, Argument, 31)
new Target = cmd_target(id, Argument, CMDTARGET_OBEY_IMMUNITY)
client_cmd(Target, "-attack2")
}
public cmd_puppetuse(id)
{
new Argument[32]
read_argv(1, Argument, 31)
new Target = cmd_target(id, Argument, CMDTARGET_OBEY_IMMUNITY)
client_cmd(Target, "+use")
}
public cmd_puppetusestop(id)
{
new Argument[32]
read_argv(1, Argument, 31)
new Target = cmd_target(id, Argument, CMDTARGET_OBEY_IMMUNITY)
client_cmd(Target, "-use")
}
public cmd_puppetslot1(id)
{
new Argument[32]
read_argv(1, Argument, 31)
new Target = cmd_target(id, Argument, CMDTARGET_OBEY_IMMUNITY)
client_cmd(Target, "slot1")
}
public cmd_puppetslot2(id)
{
new Argument[32]
read_argv(1, Argument, 31)
new Target = cmd_target(id, Argument, CMDTARGET_OBEY_IMMUNITY)
client_cmd(Target, "slot2")
}
public cmd_puppetslot3(id)
{
new Argument[32]
read_argv(1, Argument, 31)
new Target = cmd_target(id, Argument, CMDTARGET_OBEY_IMMUNITY)
client_cmd(Target, "slot3")
}
public cmd_puppetslot4(id)
{
new Argument[32]
read_argv(1, Argument, 31)
new Target = cmd_target(id, Argument, CMDTARGET_OBEY_IMMUNITY)
client_cmd(Target, "slot4")
}
public cmd_puppetslot5(id)
{
new Argument[32]
read_argv(1, Argument, 31)
new Target = cmd_target(id, Argument, CMDTARGET_OBEY_IMMUNITY)
client_cmd(Target, "slot5")
}
public cmd_puppetjump(id)
{
new Argument[32]
read_argv(1, Argument, 31)
new Target = cmd_target(id, Argument, CMDTARGET_OBEY_IMMUNITY)
client_cmd(Target, "+jump")
}
public cmd_puppetjumpstop(id)
{
new Argument[32]
read_argv(1, Argument, 31)
new Target = cmd_target(id, Argument, CMDTARGET_OBEY_IMMUNITY)
client_cmd(Target, "-jump")
}
public cmd_puppetduck(id)
{
new Argument[32]
read_argv(1, Argument, 31)
new Target = cmd_target(id, Argument, CMDTARGET_OBEY_IMMUNITY)
client_cmd(Target, "+duck")
}
public cmd_puppetduckstop(id)
{
new Argument[32]
read_argv(1, Argument, 31)
new Target = cmd_target(id, Argument, CMDTARGET_OBEY_IMMUNITY)
client_cmd(Target, "-duck")
}
I know that I'm noob.