Damn forget the idea to remove fakemeta, it's fine and what you gonna do is to make inefficient plugins and run them on your server.
Want to optimize ? Remove the useless task and use that code :
PHP Code:
#include <amxmodx>
#include <fakemeta>
#include <hamsandwich>
#define PLUGIN "Reset Score"
#define VERSION "0.0.2"
#define m_iDeaths 444
public plugin_init()
{
register_plugin( PLUGIN, VERSION, "ConnorMcLeod" )
register_clcmd("say /rs", "ClCmd_ResetScore")
register_clcmd("say_team /rs", "ClCmd_ResetScore")
}
public ClCmd_ResetScore(id)
{
new frags = get_user_frags(id)
if( frags || get_pdata_int(id, m_iDeaths) )
{
set_pdata_int(id, m_iDeaths, 0)
ExecuteHam(Ham_AddPoints, id, -frags, 1)
new szName[32]
get_user_name(id, szName, charsmax(szName))
client_print(0, print_chat, "%s has just reset his score", szName)
return PLUGIN_CONTINUE
}
client_print(id, print_chat, "Your score is already null")
return PLUGIN_HANDLED_MAIN
}
__________________