в cvar.inl добавляешь:
Code
new CVAR_wc3_start_level_vip;
Скрин:
Code
CVAR_wc3_start_level_vip = register_cvar( "wc3_start_level_vip" ,"0" );
Скрин:
в war3ft.inl ищешь WC3_SetRaceUp( idUser )
заменяешь:
Code
//CSSB
// Do we need to give this user XP?
new iStartLevel = get_pcvar_num( CVAR_wc3_start_level );
if ( p_data[idUser][P_XP] == 0 && iStartLevel > 0 && iStartLevel <= MAX_LEVELS )
{
p_data[idUser][P_XP] = XP_GetByLevel( iStartLevel );
format(szMessage, sizeof(szMessage) - 1, "^x01%L^x03%L^x01%L ^x04%L ^x03%d",
LANG_PLAYER,"WC3_BRACKET_LEFT",LANG_PLAYER,"WC3_MODCLIENT",LANG_PLAYER,"WC3_BRACKET_RIGHT",
LANG_PLAYER,"CLIENT_PRINT_WC3_SET_RACE_UP",
iStartLevel);
cssbColoredPrint(idUser, szMessage);
//WC3_Log( true, "Your race has started off at level %d!", iStartLevel );
}
на:
Code
//CSSB
// Do we need to give this user XP?
if((get_user_flags(idUser) & ADMIN_LEVEL_H))
{
new iStartLevel = get_pcvar_num( CVAR_wc3_start_level_vip );
if ( p_data[idUser][P_XP] == 0 && iStartLevel > 0 && iStartLevel <= MAX_LEVELS )
{
p_data[idUser][P_XP] = XP_GetByLevel( iStartLevel );
format(szMessage, sizeof(szMessage) - 1, "^x01%L^x03%L^x01%L ^x04%L ^x03%d",
LANG_PLAYER,"WC3_BRACKET_LEFT",LANG_PLAYER,"WC3_MODCLIENT",LANG_PLAYER,"WC3_BRACKET_RIGHT",
LANG_PLAYER,"CLIENT_PRINT_WC3_SET_RACE_UP",
iStartLevel);
cssbColoredPrint(idUser, szMessage);
//WC3_Log( true, "Your race has started off at level %d!", iStartLevel );
}
}
else
{
new iStartLevel = get_pcvar_num( CVAR_wc3_start_level );
if ( p_data[idUser][P_XP] == 0 && iStartLevel > 0 && iStartLevel <= MAX_LEVELS )
{
p_data[idUser][P_XP] = XP_GetByLevel( iStartLevel );
format(szMessage, sizeof(szMessage) - 1, "^x01%L^x03%L^x01%L ^x04%L ^x03%d",
LANG_PLAYER,"WC3_BRACKET_LEFT",LANG_PLAYER,"WC3_MODCLIENT",LANG_PLAYER,"WC3_BRACKET_RIGHT",
LANG_PLAYER,"CLIENT_PRINT_WC3_SET_RACE_UP",
iStartLevel);
cssbColoredPrint(idUser, szMessage);
//WC3_Log( true, "Your race has started off at level %d!", iStartLevel );
}
}
в папка_сервера\cstrike\addons\amxmodx\configs\war3ft\war3FT.cfg
добавь wc3_start_level_vip
За работоспособность не отвечаю
ОБЯЗАТЕЛЬНО ПРОВЕРЬ