Raised This Month: $51 Target: $400
 12% 

ResetScore


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
El Abuelo Loco
Senior Member
Join Date: Jun 2020
Old 11-23-2020 , 18:29   ResetScore
Reply With Quote #1

Can someone tell me how I can add that he can reset his score in the next round? because if they reset it many times they saturate the being...

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 
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
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:05.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode