can someone convert this to amxx, i cant get it to convert..
#include <amxmod>
#include <amxmisc>
#include <Vexd_Utilities>
public Vexd_PlayerModel(id,level,cid){
if (!cmd_access(id,level,cid,2))
return PLUGIN_HANDLED
new arg[32]
new szSkin[32]
read_argv(1,arg,31)
new player = cmd_target(id,arg,5)
if (!player) return PLUGIN_HANDLED
new authid[16],name2[32],authid2[16],name[32]
get_user_authid(id,authid,15)
get_user_name(id,name,31)
get_user_authid(player,authid2,15)
get_user_name(player,name2,31)
read_argv(2, arg, 31)
read_argv(3, szSkin, 31)
TFC_SetModel(player, arg, szSkin)
return PLUGIN_HANDLED_MAIN
}
public Vexd_ClearModel(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,5)
if (!player) return PLUGIN_HANDLED
new authid[16],name2[32],authid2[16],name[32]
get_user_authid(id,authid,15)
get_user_name(id,name,31)
get_user_authid(player,authid2,15)
get_user_name(player,name2,31)
TFC_ClearModel(player)
return PLUGIN_HANDLED_MAIN
}
public plugin_init(){
register_plugin("Vexd Model chnage","0.01","default")
register_concmd("amx_setmodel","Vexd_PlayerMo del",ADMIN_KICK,"<authid, nick or #userid> <name of model>")
register_concmd("amx_clearmodel","Vexd_ClearM odel",ADMIN_KICK,"<authid, nick or #userid>")
return PLUGIN_CONTINUE
}
|