Thread: ResetScore
View Single Post
El Abuelo Loco
Senior Member
Join Date: Jun 2020
Old 11-24-2020 , 00:17   Re: ResetScore
Reply With Quote #7

Quote:
Originally Posted by fysiks View Post
You should post the plugin again with the code where you use the g_bHasReset variable as described by OciXCrom. If you have more questions, you need to ask them (but make sure to post the code that you tried with your question).
I added what they told me, I tried it but it doesn't work. you can keep pulling / rs as many times as you want

PHP Code:
#include <amxmodx>
#include <fun>
#include <cstrike>

new const PLUGIN_NAME[]  = "Reset_Score";
new const 
VERSION[] = "1.0";
new const 
AUTHOR[]  = "Silenttt Fixed by 9 rpamm!?";

new 
name[33];
new 
boolg_bHasReset [33];
new 
rs_hudmessage;
new 
rs_sound;
 
public 
plugin_init()
{
    
register_pluginPLUGIN_NAMEVERSIONAUTHOR );

    
register_clcmd("say /rs""reset_score");
    
register_clcmd("say /resetscore""reset_score");
    
    
rs_hudmessage register_cvar("rs_hudmessage""1");
    
rs_sound register_cvar("rs_sound""1");
}

public 
reset_score(id)
{
    
set_user_frags(id0);
    
cs_set_user_deaths(id0);

    if(
get_pcvar_num(rs_hudmessage))
    {
        
get_user_name(idname32);
        
set_dhudmessage(150150150, -1.00.7126.03.00.11.5 );
        
show_dhudmessage(id"%s, Resteo su Score.!"name);
        if(
get_pcvar_num(rs_sound))
        {
           
client_cmd(id"spk fvox/bell");
        }
 }


El Abuelo Loco is offline