Raised This Month: $ Target: $400
 0% 

ScoreBoard Refresh


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
maqi
Senior Member
Join Date: Apr 2017
Location: Serbia
Old 07-03-2018 , 15:55   Re: ScoreBoard Refresh
Reply With Quote #10

Try this:

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

#pragma semicolon 1

#define MAX_PLAYERS 32
#define ADMIN_FLAGS ADMIN_BAN

new g_Msg_ScoreInfo;

public 
plugin_init( ) 
{
    
register_plugin"Reset Score""1.0""maqi" );
    
    
register_clcmd"amx_resetscores""Cmd_ResetScores"ADMIN_FLAGS"< Resets everyones scores >" );
    
    
g_Msg_ScoreInfo get_user_msgid"ScoreInfo" );
}

public 
Cmd_ResetScoresiIndexiLeveliCid )
{
    if( !
cmd_accessiIndexiLeveliCid) )
        return 
PLUGIN_HANDLED;
        
    new 
iPlayers[MAX_PLAYERS], iNumget_playersiPlayersiNum );
    
    for( new 
0iNumi++ )
        
ResetUserScoreiPlayers[i] );
        
    
console_printiIndex"Successfully cleared all scores!" );
    
    return 
PLUGIN_HANDLED;
}

ResetUserScoreiIndex )
{
    if( !
is_user_connected(iIndex) )
        return;

    
cs_set_user_deathsiIndex);
    
set_user_fragsiIndex);
        
    
message_beginMSG_BROADCASTg_Msg_ScoreInfo );
    
write_byteiIndex );
    
write_short);
    
write_short);
    
write_short);
    
write_shortget_user_team(iIndex) );
    
message_end( );

__________________
stuff

Last edited by maqi; 07-03-2018 at 16:21.
maqi 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 10:37.


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