AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   ScoreBoard Refresh (https://forums.alliedmods.net/showthread.php?t=308744)

soumyadip77 07-01-2018 21:06

ScoreBoard Refresh
 
I want score board refresh code...if any one have plz share i want to refresh score board for all

fysiks 07-01-2018 21:26

Re: ScoreBoard Refresh
 
What are you trying to do? The scoreboard is updated on several different events during gameplay. Also, you can search the forums for this stuff. A simple search in Scripting Help (the proper place to ask this type of question) for "refresh scoreboard" gives two answers.

soumyadip77 07-01-2018 21:33

Re: ScoreBoard Refresh
 
i want to refresh score board when i want....

soumyadip77 07-01-2018 21:37

Re: ScoreBoard Refresh
 
here i want to refresh score board..this function exec after 15 rounds :) re-store player score :)

PHP Code:


public Addscore()
{
    new 
PlayersMAX_PLAYERS ], numuser;
    
get_players(Playersnum"h");

    for(new 
0numi++) 
    {
        
user Players[i];

        if(
is_user_connected(user))
        {
            
set_entvaruservar_fragsfragsuser ] );
            
set_memberuserm_iDeathsdeathsuser ] );

        }

    }



CrAzY MaN 07-02-2018 00:06

Re: ScoreBoard Refresh
 
Check reset score plugin.
Execute it on 16th round start or 15th round end!

soumyadip77 07-02-2018 03:42

Re: ScoreBoard Refresh
 
you r LOL :)

instinctpt1 07-02-2018 06:17

Re: ScoreBoard Refresh
 
PHP Code:

get_user_msgid("ScoreInfo"


CrAzY MaN 07-02-2018 10:48

Re: ScoreBoard Refresh
 
Give more description.
I can't understand you.

Alber9091 07-03-2018 15:05

Re: ScoreBoard Refresh
 
I believe, he want a plugin, which resets everyone score and deaths during any time of the game.

Like: amx_resetscore @all

maqi 07-03-2018 15:55

Re: ScoreBoard Refresh
 
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( );




All times are GMT -4. The time now is 10:37.

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