Is not working , is not reset the xp and level, just print the messages...
Code:
public cmd_reset_xp(id,level,cid)
{
if(!cmd_access(id,level,cid,2))
return PLUGIN_HANDLED;
new arg[33]
read_argv(1, arg, 32)
new fp = str_to_num( arg );
new player_name[35];
get_user_name(id, player_name, charsmax(player_name) - 1);
new TAG[60];
get_pcvar_string( levelmod_prefix, TAG, charsmax( TAG ) - 1 );
if( !fp )
{
console_print( id, "amx_resetpxp < 1 > for reset all xp / levels" );
return 1;
}
else
{
ColorChat(0, TEAM_COLOR, "^1[ ^4%s^1 ] Admin ^4%s^1 has reset all xp and levels.",TAG, player_name );
nvault_prune( g_hnsxp_vault, 0, get_systime() );
return 1;
}
return 0;
}