if( !IsPlayerAlive( id ) )
{
PrintToChat( id, "\x03[SM Resetscore] You can't use this command while you are dead." );
PrintToConsole( id, "[SM Resetscore] Only alive players can use this command." );
return Plugin_Continue;
}
if( StrEqual( Said, "!resetscore" ) || StrEqual( Said, "!restartscore" ) || StrEqual( Said, "!rs" ) )
if( GetClientDeaths( id ) == 0 && GetClientFrags( id ) == 0 )
{
PrintToChat( id, "\x03[SM Resetscore] Ваш счет и так равен 0!" );
PrintToConsole( id, "[SM Resetscore] Вы не можете сейчас обнулить счет" );
return Plugin_Continue;
}
if( !IsPlayerAlive( id ) )
{
PrintToChat( id, "\x03[SM Resetscore] You can't use this command while you are dead." );
PrintToConsole( id, "[SM Resetscore] Only alive players can use this command." );
return Plugin_Continue;
}
то даже если счет 0 , то можно будет обнулить , и ошибок выскакивать не должно?if( GetClientDeaths( id ) == 0 && GetClientFrags( id ) == 0 )
{
PrintToChat( id, "\x03[SM] Ваш счет и так равен 0!" );
PrintToConsole( id, "[SM] Вы не можете сейчас обнулить счет" );
return Plugin_Continue;
}
Konstantin Shavrin,
return Plugin_Continue; на return Plugin_Handled; замени