Код за потвърждение: Избери целия код
XP_WinRound( iWinner )
{
new players[32], numberofplayers, i, id;
get_players( players, numberofplayers );
for ( i = 0; i < numberofplayers; i++ )
{
id = players[i];
// Is the user on the correct team?
if ( get_user_team( id ) == iWinner )
{
new iBonusXP = XP_Give( id, WIN_ROUND );
if ( get_pcvar_num( CVAR_wc3_show_objectives ) )
{
ColorChat( id, GREEN, "%s ^1You recieved ^3%d ^1XP for winning the round!", g_MODclient, id, iBonusXP );
}
}
}
}