hi,
this is my code:
Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <sockets>
#include <amxmisc>
#define PLUGIN "Report Dmers"
#define VERSION "Beta 1"
#define AUTHOR "HyperboleRP"
new dmreps[33]
new dmreported[33]
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say /reportdmer","repdmer")
}
public repdmer(id)
{
new arg1[32],dmname[32]
read_argv(id,arg1,31)
new dmid=cmd_target(id,arg1,0)
get_user_name(dmid,dmname,31)
if(dmreported[id] = dmid)
{
client_print(id,print_chat,"[DMReporter]Cant report more times on that dmer")
return PLUGIN_HANDLED
}
if(get_user_frags(dmid) > 1)
{
dmreps[dmid] = dmreps[dmid]+1
dmreported[id] = dmid
client_print(dmid,print_chat,"[DMReporter]You Have been reported as a dmer. after 5 reports your kicked.")
}
else
{
client_print(id,print_chat,"[DMReporter]Sorry but %s Cant be a dmer with 0 frags",dmname)
}
if(dmreps[dmid] > 5)
{
server_cmd("kick %s",dmname)
dmreps[dmid] = 0
}
return PLUGIN_HANDLED
}
it doenst work, i dont know why.
and i also tried to make it so pepole wont be able to report on same person again.
but, it didnt actually work.
i could report on other one, and then back on the already-reported one.
help?