Code:
/* AMX Mod script.
*
* Monster Plugin Interface
* by JustinHoMi
*
* This script is an amx interface to botman´s monster plugin
* [URL]http://planethalflife.com/botman/monster.shtml[/URL]
*
* Usage: amx_monster < monster > < player nick or authid >
*
*/
#include <amxmod>
#include <amxmisc>
public admin_monster(id,level,cid){
if (!cmd_access(id,level,cid,3))
return PLUGIN_HANDLED
new player[40],monster[16]
read_argv(1,monster,16)
read_argv(2,player,40)
new pid = cmd_target(id,player,14)
if (!pid) return PLUGIN_HANDLED
new name[40]
get_user_name(pid,name,40)
console_print(id,"[AMX] Spawning a %s on %s",monster,name)
server_cmd("monster %s %s",monster,name)
return PLUGIN_HANDLED
}
public plugin_init(){
register_plugin("Monsters","0.2","JustinHoMi")
register_concmd("amx_monster","admin_monster",ADMIN_LEVEL_B,"< monster > < nick or authid >")
return PLUGIN_CONTINUE
}